S
Scott Logan
Hello!
I am using ODP.NET 9.2.0.4.01 and .NET 2003 to create a connection to
an Oracle 8.1.7 database running on Windows NT.
My problem is that it takes 32 seconds to create a new connection pool
to the database. I have a few questions if you can possibly help me (I
posted on OTN ODP.NET newsgroup 7 days ago and haven't gotten any
response)...
1) Is 32 seconds normal?
2) Is there some setting, code, or piece of hardware that I can get to
speed this up?
Many Thanks,
Scott
My code to open a connection follows :
OracleConnection conn = new OracleConnection();
conn.ConnectionString = "Data Source=prod1;User
ID=xxxxxx;Password=yyyyyy;"
conn.open();
I put on debug mode and got the following output if this helps...
TIME:2004/ 6/10-17: 5: 6:218 TID: 5d0 (ENTRY) GetRegTraceInfo()
TIME:2004/ 6/10-17: 5: 6:218 TID: 5d0 (EXIT) GetRegTraceInfo():
RetCode=0 Line=445
TIME:2004/ 6/10-17: 5: 6:218 TID: 5d0 (ENTRY)
OracleConnection::OracleConnection(1)
TIME:2004/ 6/10-17: 5: 6:218 TID: 5d0 (EXIT)
OracleConnection::OracleConnection(1)
TIME:2004/ 6/10-17: 5: 6:250 TID: 5d0 (ENTRY) OracleConnection::Open()
TIME:2004/ 6/10-17: 5: 6:250 TID: 5d0 (ENTRY) OpsConAllocValCtx()
TIME:2004/ 6/10-17: 5: 6:250 TID: 5d0 (EXIT) OpsConAllocValCtx():
RetCode=0 Line=129
TIME:2004/ 6/10-17: 5: 6:296 TID: 5d0 (ENTRY) OpsConOpen()
TIME:2004/ 6/10-17: 5:38:578 TID: 5d0 (EXIT) OpsConOpen(): RetCode=0
Line=1354
TIME:2004/ 6/10-17: 5:38:671 TID: 5d0 (ENTRY) OpsConAllocValCtx()
TIME:2004/ 6/10-17: 5:38:671 TID: 5d0 (EXIT) OpsConAllocValCtx():
RetCode=0 Line=129
TIME:2004/ 6/10-17: 5:38:671 TID: 5d0 (POOL) New connection pool
created for: "Data Source=prod1;User Id=xxxxxx;" (id: 1896611229)
TIME:2004/ 6/10-17: 5:38:671 TID: 5d0 (POOL) Total number of
connection pools: 1
TIME:2004/ 6/10-17: 5:38:671 TID: 5d0 (POOL) Total number of
connections for pool (id: 1896611229) : 1
TIME:2004/ 6/10-17: 5:38:671 TID: 5d0 (EXIT) OracleConnection::Open()
TIME:2004/ 6/10-17: 5:38:687 TID: 5d0 (ENTRY)
OracleConnection::Close()
I am using ODP.NET 9.2.0.4.01 and .NET 2003 to create a connection to
an Oracle 8.1.7 database running on Windows NT.
My problem is that it takes 32 seconds to create a new connection pool
to the database. I have a few questions if you can possibly help me (I
posted on OTN ODP.NET newsgroup 7 days ago and haven't gotten any
response)...
1) Is 32 seconds normal?
2) Is there some setting, code, or piece of hardware that I can get to
speed this up?
Many Thanks,
Scott
My code to open a connection follows :
OracleConnection conn = new OracleConnection();
conn.ConnectionString = "Data Source=prod1;User
ID=xxxxxx;Password=yyyyyy;"
conn.open();
I put on debug mode and got the following output if this helps...
TIME:2004/ 6/10-17: 5: 6:218 TID: 5d0 (ENTRY) GetRegTraceInfo()
TIME:2004/ 6/10-17: 5: 6:218 TID: 5d0 (EXIT) GetRegTraceInfo():
RetCode=0 Line=445
TIME:2004/ 6/10-17: 5: 6:218 TID: 5d0 (ENTRY)
OracleConnection::OracleConnection(1)
TIME:2004/ 6/10-17: 5: 6:218 TID: 5d0 (EXIT)
OracleConnection::OracleConnection(1)
TIME:2004/ 6/10-17: 5: 6:250 TID: 5d0 (ENTRY) OracleConnection::Open()
TIME:2004/ 6/10-17: 5: 6:250 TID: 5d0 (ENTRY) OpsConAllocValCtx()
TIME:2004/ 6/10-17: 5: 6:250 TID: 5d0 (EXIT) OpsConAllocValCtx():
RetCode=0 Line=129
TIME:2004/ 6/10-17: 5: 6:296 TID: 5d0 (ENTRY) OpsConOpen()
TIME:2004/ 6/10-17: 5:38:578 TID: 5d0 (EXIT) OpsConOpen(): RetCode=0
Line=1354
TIME:2004/ 6/10-17: 5:38:671 TID: 5d0 (ENTRY) OpsConAllocValCtx()
TIME:2004/ 6/10-17: 5:38:671 TID: 5d0 (EXIT) OpsConAllocValCtx():
RetCode=0 Line=129
TIME:2004/ 6/10-17: 5:38:671 TID: 5d0 (POOL) New connection pool
created for: "Data Source=prod1;User Id=xxxxxx;" (id: 1896611229)
TIME:2004/ 6/10-17: 5:38:671 TID: 5d0 (POOL) Total number of
connection pools: 1
TIME:2004/ 6/10-17: 5:38:671 TID: 5d0 (POOL) Total number of
connections for pool (id: 1896611229) : 1
TIME:2004/ 6/10-17: 5:38:671 TID: 5d0 (EXIT) OracleConnection::Open()
TIME:2004/ 6/10-17: 5:38:687 TID: 5d0 (ENTRY)
OracleConnection::Close()