|
|
Question : agntsrvc.exe error and ORA-12154: TNS: could not resolve service name
|
|
I'm running oracle 9i on windows xp. after instalation of oracle 9ds i restarted my computer and following error was reported: agntsrvc.exe error. when i'm trying to connect to oracle using toad following error is reported: ORA-12154: TNS: could not resolve service name. i don't know what is wrong. before the instalation of developer suite everything was ok. what should i do?
|
Answer : agntsrvc.exe error and ORA-12154: TNS: could not resolve service name
|
|
Fix === Action: Install Rdbms 9.0.1.4 Patchset ==== http://updates.oracle.com/download/3038037.html Oracle9i Application Server Patch Set Notes Release 9.0.2.3 for Windows NT . Ensure that Oracle database patch set 9.0.1.4 is applied to database instances before applying the Oracle9iAS version 9.0.2.3 patch set to infrastructure instances. . http://updates.oracle.com/download/2517300.html Oracle 9i Data Server 9.0.1 Patch Set 4 for Windows NT . Shut down and deactivate all services for Application Server 902: . Oracleas902Agent agntsrvc.exe Oracle902EMWebsite: Enter Password manager1 Oracleas902InternetDirectory_iasdb Oracleas902ProcessManager Oracleas902TNSListener OracleServiceIASDB . Reboot the System . Start setup.exe from extracted Rdbms 9.0.1.4 Disk1 Directory Next Name: as902 Path: d:\as902 Next Install . Startup Services Oracleas902TNSListener and OracleServiceIASDB . d: cd as902 sqlplusw "sys/change_on_install as sysdba" . Now we have Sql*Plus 9.0.1.4 and Rdbms 9.0.1.4, that proves setup.exe has successfully upgraded the code. . ALTER SYSTEM ENABLE RESTRICTED SESSION; ALTER SYSTEM DISABLE RESTRICTED SESSION; update obj$ set status=5 where type#=29 and owner#!=0; commit; shutdown startup ALTER SYSTEM SET "_system_trig_enabled"=FALSE SCOPE=MEMORY; shutdown . === Action: Install Rdbms 9.0.1.4 Patch 3 (or higher) roll-up patch === http://updates.oracle.com/download/3109399.html ORACLE 9I 9.0.1.4 PATCH 3 FOR WINDOWS NT AND WINDOWS 2000 . set oracle_home=e:\as902 copy /v /y orasnls9.dll %oracle_home%\bin\ copy /v /y orapls9.dll %oracle_home%\bin\ copy /v /y orantcp9.dll %oracle_home%\bin\ copy /v /y oractxx9.dll %oracle_home%\bin\ copy /v /y oracommon9.dll %oracle_home%\bin\ copy /v /y oracle.exe %oracle_home%\bin\ copy /v /y oraclient9.dll %oracle_home%\bin\ copy /v /y oracore9.dll %oracle_home%\bin\ copy /v /y orageneric9.dll %oracle_home%\bin\ copy /v /y tnslsnr.exe %oracle_home%\bin\ copy /v /y lsnrctl.exe %oracle_home%\bin\ copy /v /y oran9.dll %oracle_home%\bin\ copy /v /y imp.exe %oracle_home%\bin\ copy /v /y extproc.exe %oracle_home%\bin\ copy /v /y ctxhx.exe %oracle_home%\bin\ copy /v /y oranjni9.dll %oracle_home%\bin\ copy /v /y njssl9.dll %oracle_home%\bin\ copy /v /y orannzsbb9.dll %oracle_home%\bin\ copy /v /y owm2.dll %oracle_home%\bin\ copy /v /y ctxsrv.exe %oracle_home%\bin\ copy /v /y orannts9.dll %oracle_home%\bin\ copy /v /y oraplc9.dll %oracle_home%\bin\ copy /v /y exp.exe %oracle_home%\bin\ copy /v /y ctxfilt\*.* %oracle_home%\bin\ copy /v /y nlsdata\*.* %ORACLE_HOME%\OCOMMON\NLS\ADMIN\DATA\ copy /v /y prvtldap.plb %ORACLE_HOME%\RDBMS\ADMIN\ copy /v /y catexp.sql %ORACLE_HOME%\RDBMS\ADMIN\ copy /v /y catadt.sql %ORACLE_HOME%\RDBMS\ADMIN\ copy /v /y oraus.msb %ORACLE_HOME%\RDBMS\MESG\ copy /v /y jssl-1_1.jar %ORACLE_HOME%\JLIB\ copy /v /y jssl-1_2.jar %ORACLE_HOME%\JLIB\ copy /v /y *.sym %ORACLE_HOME%\RDBMS\ADMIN\ . Startup Services Oracleas902TNSListener and OracleServiceIASDB . From the Command Line: cd \as902\rdbms\admin sqlplusw "sys/change_on_install@iasdb as sysdba" . === Action: Install Pre As 9.0.2.3 Patch 2563444 ==== http://updates.oracle.com/download/2563444.html OWM DOES NOT WORK IN IAS ENVIRONMENT AFTER THE APPLICATION OF 9014 DB PATCH SET . Product Oracle Net Services Family Release Oracle 9.0.1.4 Select a Platform or Language: Microsoft Windows (32-bit) Last Updated 11-NOV-2002 Size 4.4K (4459 bytes) Follow (Download) and (View README) Links. . Download and extract the Patch to a directory, for example d:\orastage\as9023.2563444 . Stop all running Services for As902 cd d:\orastage\as9023.2563444 cd post_9014 post_9014.bat . === Action: Install As 9.0.2.3 Patch ==== http://updates.oracle.com/download/3038037.html Description PLACE HOLDER: IAS 90230 PATCHSET FOR 9IAS 9.0.2.X . Product Oracle Application Server Products (iAS) Family Release iAS 9.0.2.3 Select a Platform or Language: Microsoft Windows (32-bit) Last Updated 05-SEP-2003 Size 131M (138140812 bytes) Follow (Download) and (View README) Links. . Start Services: OracleServiceIASDB oracle.exe Oracleas902TNSListener tnslsnr.exe . Install timeout.exe from the Resourcekit by copying it to the Windows directory %WINDIR%: ------------------- Searching for "timeout resourcekit windows" in a search machine like google should lead you to the right direction: TimeOut: Timeout is a command-line tool that causes the command processor to pause execution for the number of seconds specified by the time (#) parameter, after which it continues without requiring a user keystroke. . Create the following scripts: ::::::::::::: StartOID.bat: ::::::::::::: set ORACLE_HOME=D:\AS902 Set ORACLE_SID=iasdb echo .....Starting D:\AS902 Internet Directory ...... oidmon start oidctl server=oidldapd instance=1 start timeout 20 pause :::::::::::: StopOID.bat: :::::::::::: set ORACLE_HOME=D:\AS902 set ORACLE_SID=IASDB echo .....Stopping D:\AS902 Internet Directory ...... oidctl server=oidldapd configset=0 instance=1 stop timeout 20 oidmon stop echo ....Done pause . Run Start_Oid to startup Oid: ----------------------------- Wait a bit to give Oid enough time to startup cleanly. Verify if OID is running by doing an ldapbind: ldapbind.exe -h hostname.domain -p 4032 -D cn=orcladmin -w manager1 bind successful DO NOT CONTINUE IF THE BIND IS NOT SUCCESSFUL. You must find and resolve the issue before being able to apply the patchset. For example it could be that your Oid is not running on port 4032. Verify the real portnumber by looking up \as902\install\portlist.ini. Search for this line: Oracle Internet Directory(non-SSL) = 4032 . Run setup.exe from Application Server 9.0.2.3 Patch. . Name: as902 Path: d:\as902 OiD Hostname: hostname.domain OiD Port: 4032 OID Superuser Namer: cn=orcladmin OID Superuser Password: manager1 . Next . Oracle Infrastructure Database Specify Infrastructure Database TNS Name Alias In order to upgrade the current infrastructure, provide the TNS Name Alias for the following DB Instance: DB Host Name: hostname.domain DB Port: 1521 DB SID: iasdb TNS Alias Name: iasdb . Next . After Message "stop all infrastructure processes": DONT STOP ANYTHING ! INSTEAD CONTINUE AS INSTRUCTED HERE. . Next . Oracle Infrastructure Database Specify Infrastructure Database SYS User Password In order to upgrade the current infrastructure, provide the SYS user password for the local DB instance: DB SID: iasdb.hostname.domain Password: change_on_install Confirm Password: change_on_install Next Summary: Oracle9i Application Server PatchSet 9.0.2.3.0. . NOW BEFORE PRESSING INSTALL STOP ALL PROCESSES: ----------------------------------------------- Run Stop_OID.bat from above. Verify in Services if Oracleas902InternetDirectory_iasdb is really stopped Check in Task Manager if processes oidldapd.exe and oidservice.exe are really gone. Stop instance: sqlplusw "sys/change_on_install@iasdb as sysdba" SQL> shutdown immediate; From the command line: net stop OracleServiceIASDB net stop Oracleas902TNSListener Check in Services if OracleServiceIASDB and Oracle902TNSListener are really stopped. Check in Task Manager if processes oracle.exe and TNSLSNR.EXE are really gone. . Press Install . Install pending... . Starting Database: succeeded Oracle Internet Directory Patch Configuration Assistant: succeeded Distributed Configuration Management UPgrade Configuration: succeeded OIDDAS.EAR Redeploy Configuration Assistant: succeeded Patch SSO: succeeded . End of Installation The installation of Oracle9i Application Server PatchSet was successful. Exit . === Action: Follow As 9.0.2.3 Postinstallation Procedure Calendar ==== http://updates.oracle.com/download/3038037.html 9.1 Oracle Internet Directory Postinstallation Procedure . Apply the patch for bug 2988414. http://updates.oracle.com/download/2988414.html CALENDAR CONTAINER MISSING IN UPGRADE OF ROOT ORACLE CONTEXT TO 9023 RELEASE . d: cd \ORASTAGE\post_as9023.2988414\bug2988414 ldapmodify -p 4032 -h hostname -D cn=orcladmin -w manager1 -v -f ./mod.ldif . Output from Patch 2988414: -------------------------- ldapmodify -p 4032 -h hostname -D cn=orcladmin -w manager1 -v -f ./mod.ldif add cn: Calendar add objectclass: orclContainer top add orclaci: access to entry by group="cn=iASAdmins, cn=Groups,cn=OracleContext" (browse,add,delete, proxy) by dn=".*,cn=Calendar,cn=Products, cn=OracleContext" (browse,add,delete) by * (none) access to attr=(*) by group="cn=iASAdmins, cn=Groups,cn=OracleContext" (read,search,compare,selfwrite,write) by dn=".*,cn=Calendar,cn =Products,cn=OracleContext" (read,search,compare,selfwrite,write) by * (none) adding new entry cn=Calendar,cn=Products,cn=OracleContext modify complete replace orclVersion: 90230 modifying entry cn=OracleContext modify complete ------------------------------------------------------------------------------ . === Action: Follow As 9.0.2.3 Postinstallation Procedure orclmailnntp ==== http://updates.oracle.com/download/3038037.html 9.1 Oracle Internet Directory Postinstallation Procedure . Use the following command syntax to create a catalog for the orclmailnntpoutboundpeers attribute: ------------------------------------------------------------------------------ SET OID_HOSTNAME=hostname.domain SET OID_PORT=4032 SET ORCLADMIN_PASSWORD=manager1 cd /d %TEMP% echo dn: cn=catalogs > catalog.ldif echo changetype: modify >catalog.ldif echo add: orclindexedAttribute >catalog.ldif echo orclindexedAttribute: orclmailnntpoutboundpeers >catalog.ldif ldapmodify -h %OID_HOSTNAME% -p %OID_PORT% -D cn=orcladmin -w %ORCLADMIN_PASSWORD% -f catalog.ldif ------------------------------------------------------------------------------ . Output from orclmailnntp.bat ---------------------------- SET OID_HOSTNAME=hostname SET OID_PORT=4032 SET ORCLADMIN_PASSWORD=manager1 cd /d D:\TEMP echo dn: cn=catalogs 1>catalog.ldif echo changetype: modify 1>catalog.ldif echo add: orclindexedAttribute 1>catalog.ldif echo orclindexedAttribute: orclmailnntpoutboundpeers 1>catalog.ldif ldapmodify -h hostname -p 4032 -D cn=orcladmin -w manager1 -f catalog.ldif modifying entry cn=catalogs
|
|
|
|
|