Question about Database Configuration Assistance (on solaris) [message #64272] |
Fri, 07 January 2005 08:50 |
Jianhua
Messages: 4 Registered: January 2005
|
Junior Member |
|
|
Hi,
I created a database (SID="testdb") using dbca successfully. However it didn't create the file dbsinittestdb.ora. When I tried to start the new instance, I got an error "file inittestdb.ora not found". (I'm using Oracle 9.2)
Any idea?
Thanks in advance!
Jianhua
|
|
|
|
Re: Question about Database Configuration Assistance (on solaris) [message #64275 is a reply to message #64274] |
Fri, 07 January 2005 11:30 |
Jianhua
Messages: 4 Registered: January 2005
|
Junior Member |
|
|
Hi Mahesh,
Thanks a lot for your reply - I found the file in sid/pfile directory.
My follow-up question is about the oratab. Now the new instance is added to oratab file with "N" option - meaning it won't be started automatically when system reboots. If I change it to "Y", will it work without dbs/init<sid>.ora file? Last time I did change it to "Y" and rebooted, however the listener had problem starting up with error "no target or host found". It might be random problem related to my DNS. But this time I would like to get your expert advice first.
Thanks again!
Jianhua
|
|
|
|
Re: Question about Database Configuration Assistance (on solaris) [message #64293 is a reply to message #64276] |
Mon, 10 January 2005 04:50 |
Jianhua
Messages: 4 Registered: January 2005
|
Junior Member |
|
|
Hi Mahesh,
Yes, I have a script in /etc/init.d to start/shut db instances using the correct oratab file.
Following is my current oratab file:
*:/apps/oracle/product/9.2.0:N
db1:/apps/oracle/product/9.2.0:Y
db2:/apps/oracle/product/9.2.0:N
db1 is an existing instance and db2 is one I just created. As you can see, I have two instances under the same ORACLE_HOME, this should be okay, right?
Now if I change db2 to "Y", will it start correctly with spfilesdb2.ora? (When DBCA created db2, it didn't generate initdb2.ora.) I'm asking this because I'm wondering whether I need to copy admin/db2/pfile/initdb2.ora file to dbs/initdb2.ora.
Also following is my listener.ora. I'm confused that it doesn't contain any information about db1. Still I'm able to access db1 remotely. db2 entry in this file is added by DBCA, while db1 is created by one of my apps' installation. It's not through DBCA. Could you explain why db1 is not here in listener.ora?
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 1521))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /apps/oracle/product/9.2.0)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = db2.abc.com)
(ORACLE_HOME = /apps/oracle/product/9.2.0)
(SID_NAME = db2)
)
)
|
|
|
|