|
|
|
|
|
|
|
|
Re: restart of the database service causes ORA-12514: TNS:listener does not currently know of service re [message #558957 is a reply to message #558956] |
Wed, 27 June 2012 12:54 |
Andrey_R
Messages: 441 Registered: January 2012 Location: Israel
|
Senior Member |
|
|
>> If the database is up and running, what is the problem?
the database and listener services in the OS are up and running.
I cannot connect to the database due to the originally posted error.
I *restarted* the database and listener services to see if this will solve the original error,
but it didn't, still can't connect.
I have a TNS_ADMIN environment variable that leads to %ORACLE_HOME%\network\admin.
I tried to change it to C:\oracle\product\10.2.0\db_1\network\admin and restart the listener - same problem.
any ideas what else should I check?
|
|
|
|
Re: restart of the database service causes ORA-12514: TNS:listener does not currently know of service re [message #558965 is a reply to message #558958] |
Wed, 27 June 2012 14:01 |
Andrey_R
Messages: 441 Registered: January 2012 Location: Israel
|
Senior Member |
|
|
this is probably what has happend.
I am still investigating what and why caused this..
but what has let me connect was defining the next set of variables explicitly in SQL*Plus session:
set ORACLE_SID=*SID_NAME*
set ORACLE_HOME=C:\oracle\product\10.2.0\db_1
PATH %ORACLE_HOME%\bin;%PATH%
set NLS_LANG=AMERICAN_AMERICA.WE8PC850
set NLS_DATE_FORMAT=yyyy-mm-dd.hh24-mi-ss
set NLS_TIMESTAMP_FORMAT=yyyy-mm-dd.hh24-mi-ss.ff6
set TNS_ADMIN=%ORACLE_HOME%\network\admin
set SQLPATH=%ORACLE_HOME%\rdbms\admin;c:\my_scripts
can someone guess what of these solved the issue?
Regards,
Andrey
|
|
|
|
|
|
|
Re: restart of the database service causes ORA-12514: TNS:listener does not currently know of service re [message #558978 is a reply to message #558965] |
Wed, 27 June 2012 15:14 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
Andrey_R wrote on Wed, 27 June 2012 15:01
this is probably what has happend.
I am still investigating what and why caused this..
but what has let me connect was defining the next set of variables explicitly in SQL*Plus session:
set ORACLE_SID=*SID_NAME*
set ORACLE_HOME=C:\oracle\product\10.2.0\db_1
PATH %ORACLE_HOME%\bin;%PATH%
set NLS_LANG=AMERICAN_AMERICA.WE8PC850
set NLS_DATE_FORMAT=yyyy-mm-dd.hh24-mi-ss
set NLS_TIMESTAMP_FORMAT=yyyy-mm-dd.hh24-mi-ss.ff6
set TNS_ADMIN=%ORACLE_HOME%\network\admin
set SQLPATH=%ORACLE_HOME%\rdbms\admin;c:\my_scripts
can someone guess what of these solved the issue?
Again I do not understand. If you cannot connect, how did you set these variables in a sql*plus session? And the above are OS environment variables, not DEFINEd sqlplus session variables.
ORACLE_SID is what connects you to the correct database if it is set at the OS (along with ORACLE_HOME).
|
|
|
|
|
|