issue while connecting database oracle 11g (2897 Views)
Reply
Trusted Contributor
vnarend
Posts: 206
Registered: ‎07-27-2011
Message 1 of 17 (2,897 Views)
Accepted Solution

issue while connecting database oracle 11g

Hi There,

 

 

25881(250388) 11/04/2011 20:09:23  RTE E SQL code=12154 message=ORA-12154: TNS:could not resolve the connect identifier specified
 25881(250388) 11/04/2011 20:09:23  RTE E API=OCISessionEnd()
 25881(250388) 11/04/2011 20:09:23  RTE E API=OCISessionEnd()
 25881(250388) 11/04/2011 20:09:23  RTE E Error: SQL code=12154 message=ORA-12154: TNS:could not resolve the connect identifier specified
 25881(250388) 11/04/2011 20:09:23  RTE E SQL code=12154 message=ORA-12154: TNS:could not resolve the connect identifier specified
 25881(250388) 11/04/2011 20:09:23  RTE E API=OCIServerAttach-Remote [in sqociConnect]
 25881(250388) 11/04/2011 20:09:23  RTE E API=OCIServerAttach-Remote [in sqociConnect]
 25881(250388) 11/04/2011 20:09:23  RTE E Failure connecting to dbtype 'oracle11' Oracle server 'SNOCSM' as user 'SMDBUSR'
 25881(250388) 11/04/2011 20:09:23  RTE E Failed to connect to RDBMS server, terminating.
 25881(250388) 11/04/2011 20:09:23  RTE I -Memory : S(283184) O(184844) MAX(468028) - MALLOC's Total(3892)
 25881(250388) 11/04/2011 20:09:23  RTE I Thread termination in progress
 25881(250388) 11/04/2011 20:09:23  RTE E Unable to obtain lock in interm().
 25881(250388) 11/04/2011 20:09:23  RTE D Total number of recorded stacks: 0
 25881(250388) 11/04/2011 20:09:23  RTE I Process termination cleanup complete (exit code=1)
$

 

I have set follwoing path

 

$ echo $LD_LIBRARY_PATH
/home/oracle/client:/home/oracle/app/oracle/product/11.2.0/dbhome_1/lib

 

I have installed oracle client in /home/oracle/client

 

 

Please help me what could be wrong in my config.

 

Thanks,

vnd

Please use plain text.
Trusted Contributor
tprovin
Posts: 229
Registered: ‎11-05-2009
Message 2 of 17 (2,891 Views)

Re: issue while connecting database oracle 11g

Did you remember to set your tns entry in the tnsnames.ora file?
Thanks,

Tim
Please use plain text.
Honored Contributor
Piku
Posts: 3,839
Registered: ‎06-17-2010
Message 3 of 17 (2,890 Views)

Re: issue while connecting database oracle 11g

yup, it seems that you had missed the service name entry in tnsnames.ora file
Please use plain text.
Trusted Contributor
vnarend
Posts: 206
Registered: ‎07-27-2011
Message 4 of 17 (2,882 Views)

Re: issue while connecting database oracle 11g

hi,

 

Thanks for your reply.

Servicename is already entered in tnsnames.ora file.

 

Thanks,

vnd

Please use plain text.
Trusted Contributor
Flavio Bianchi
Posts: 110
Registered: ‎05-11-2009
Message 5 of 17 (2,875 Views)

Re: issue while connecting database oracle 11g

If you try a tnsping does server reply?

Please use plain text.
Trusted Contributor
tprovin
Posts: 229
Registered: ‎11-05-2009
Message 6 of 17 (2,871 Views)

Re: issue while connecting database oracle 11g

If your service name is set in the tnsnames.ora file then there is really only a couple things that could be wrong.  As previously stated, verify that the server replies with tnsping.  If it does, verify that your sqldb parameter in the sm.ini file is set to the service name, and also verify the sqllogin parameter in the sm.ini file is correct.

Thanks,

Tim
Please use plain text.
Advisor
Nayeem-SM7
Posts: 26
Registered: ‎11-15-2011
Message 7 of 17 (2,856 Views)

Re: issue while connecting database oracle 11g

SM 7 XX is a 32 bits application support 11.1g and not 11.2g, however you can raise a case with HP support for some plugins.

Please use plain text.
Trusted Contributor
vnarend
Posts: 206
Registered: ‎07-27-2011
Message 8 of 17 (2,838 Views)

Re: issue while connecting database oracle 11g

Issue with the db user access. Issue has been resolved after giving resource and connect access to db user on database.

 

Thanx

Please use plain text.
Frequent Advisor
YadigarBakir
Posts: 41
Registered: ‎08-11-2011
Message 9 of 17 (2,381 Views)

Re: issue while connecting database oracle 11g

Dear Guest,

We have same problem.Two application server look one database and these servers work active.

We have problem when try to work both of them.When One server works normally but other doesn't work at the same time.

When we have problem,this error write at sm.log file. We dont have this problem ,we want connect via ORACLE 10g.But 11g is problem.

Can you give me detail of this problem resolution ?


Many Thanks

Please use plain text.
Occasional Advisor
BenHPBen
Posts: 9
Registered: ‎08-27-2013
Message 10 of 17 (1,640 Views)

Re: issue while connecting database oracle 11g

Hello there,

 

today I had the same issue, it took me a while to figure out the problem i had (it was quit simple):

 

You have to take care that the entries for your host in "tnsnames.ora" AND "listener.ora" file are the same.

That files are stored in your dbhome folder under /network/admin

 

Best Ben

Please use plain text.
HP Expert
Amen16
Posts: 214
Registered: ‎11-01-2011
Message 11 of 17 (1,631 Views)

Re: issue while connecting database oracle 11g

Hello all,

 

Here is some additional information about this I wanted to share:

 

ORA-12154:TNS:could not resolve the connect identifier specified

 

Cause: A connection to a database or other service was requested using a connect identifier, and the connect identifier specified could not be resolved into a connect descriptor using one of the naming methods configured. For example, if the type of connect identifier used was a net service name then the net service name could not be found in a naming method repository, or the repository could not be located or reached.

 

Action: - If you are using local naming (TNSNAMES.ORA file):

 

- Make sure that "TNSNAMES" is listed as one of the values of the NAMES.DIRECTORY_PATH parameter in the Oracle Net profile (SQLNET.ORA)

- Verify that a TNSNAMES.ORA file exists and is in the proper directory and is accessible.

- Check that the net service name used as the connect identifier exists in the TNSNAMES.ORA file.

- Make sure there are no syntax errors anywhere in the TNSNAMES.ORA file. Look for unmatched parentheses or stray characters. Errors in a TNSNAMES.ORA file may make it unusable.

- If you are using directory naming:

- Verify that "LDAP" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).

- Verify that the LDAP directory server is up and that it is accessible.

- Verify that the net service name or database name used as the connect identifier is configured in the directory.

- Verify that the default context being used is correct by specifying a fully qualified net service name or a full LDAP DN as the connect identifier

- If you are using easy connect naming:

- Verify that "EZCONNECT" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).

- Make sure the host, port and service name specified are correct. - Try enclosing the connect identifier in quote marks. See the Oracle Net Services Administrators Guide or the Oracle operating system specific guide for more information on naming.

 

Regards,

Alex

HP Support

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
Occasional Advisor
BenHPBen
Posts: 9
Registered: ‎08-27-2013
Message 12 of 17 (1,597 Views)

Re: issue while connecting database oracle 11g

Hi there,

me again. I got that Problem again (on a Virtual Machine with Enterprise Linux 6.4) and figured out a solution by Setting the SID_LIST_LISTENER paramater. So here are the steps:

 

How to figure out why Service Manager is not able to connect to the database on a Linux OS by Setting SID_LIST_LISTENER

  1. Check whether the listener is started
    1. Move to the dbhome directory
    2. Check the status of the listener by typing “./lsnrctl status”
    3. If the listener isn’t started, start it with “./lsnrctl start”

If you get a message like “No Service started” (or similar), this could be one reason why Service Manager isn’t able to connect to the database.

To work with that issue follow those next steps:

  1. Check your current IP Adress by entering “ifconfig” into the command prompt (if you use your IP address as host, otherwise use the hostname)
  2. Move to the >dbhome>network>admin directory where your database is placed
  3. Open the “tnsnames.ora” file with the “gedit &” command
  4. Check the configurations of the listener
    1. Check the host, if the localhost isn’t used as host you should enter your IP Adress or the hostname you want to use
    2. Check whether the SERVICE_NAME is similar to the name you gave your database
    3. Save and close the window
    4. Open the “listener.ora” file with the “gedit &” command (it is in the same directory as the “tnsnames.ora” file)
    5. Check the tnsnames configurations
      1. Again check the hostname you have set, in this example the current IP Adress
      2. The “SID_LIST_LISTENER” configuration is pasted manually, if you don’t have that part in the “tnsnames.ora” file it could be the reason why you get an error message while starting the listener. So make sure you added that information. Again, take care that the SID is correct and the path of ORACLE_HOME is correct.

LISTENER =

  (DESCRIPTION_LIST =

    (DESCRIPTION =

      (ADDRESS = (PROTOCOL = TCP)(HOST = <ipadress>)(PORT = 1521))

    )

  )

######add this:

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (GLOBAL_DBNAME = <DBNAME>)
      (ORACLE_HOME = <home\app\oracle\product\11.2.0\dbhome_1>)
      (SID_NAME = <DBNAME>)
    )

 

  1. Move to the the RUN directory of the Service Manager Server
  2. Open the “sm.ini” file in editing mode
    1. Enter the “groupbindaddress” parameter with the same host which you set in “tnsnames.ora” and “listener.ora” file
    2. Check if the “sqldictionary” parameter is set correctly
    3. Check if the “sqldb” parameter is set correctly, again: take care that this is similar to the SID and database name
    4. Check the “sqllogin” parameter, that user need access to your database, otherwise Service Manager isn’t able to connect to the databse
    5. Check if the”./lsnrctl start” command starts the listener successfully
    6. If the listener is started correctly you can start SM
      1. Start database from the >dbhome>bin directory
      2. Start Service Manager from the >SM>Server>RUN directory
      3. Start Apache Tomcat from the >Tomcat>bin directory
      4. Open Service Manager, no error message should appear (else check the “sm.log” file)

----------> If this helped you, click on "SOLUTION". Thank you.

Please use plain text.
Advisor
rammohanreddy
Posts: 14
Registered: ‎12-06-2013
Message 13 of 17 (1,334 Views)

issue while connecting to HP AM 5.22 database oracle 11g with the HP asset manager 9.4

It is giving the error

"unable to connect to the database engine"

Please use plain text.
HP Expert
Amen16
Posts: 214
Registered: ‎11-01-2011
Message 14 of 17 (1,327 Views)

Re: issue while connecting to HP AM 5.22 database oracle 11g with the HP asset manager 9.4

Hello Rammohanreddy,

 

Are you currently experiencing this issue?

HP Support

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
Advisor
rammohanreddy
Posts: 14
Registered: ‎12-06-2013
Message 15 of 17 (1,298 Views)

Re: issue while connecting to HP AM 5.22 database oracle 11g with the HP asset manager 9.4

I am using Windows 2008 R2 64-bit OS,Oracle 11g client(32-bit) has been installed on OS.

while i am connecting to Asset Manager 5.22 database with Asset Manager 9.40 it is giving below error,

 

 

Error reading database description.
Verify your database with your administration tool.

 

see the attachment

 

could you please help me.

regards,

RAM

Please use plain text.
HP Expert
lisajo
Posts: 480
Registered: ‎02-15-2010
Message 16 of 17 (1,287 Views)

Re: issue while connecting to HP AM 5.22 database oracle 11g with the HP asset manager 9.4

HI

 

I just found a KM article that might help on this

 

Incorrect database description version (240.2 instead of 250)

Error reading database description. verify your database with your administration tool.

Error is seen when the client is trying to a database of a different version.

 

 

Cause

This error occurs when there is a mismatch in information, in the client (am.exe) and the db version.

For Example :

Incorrect database description version (240.2 instead of 250)

240.2 is the dbversion for Asset Manager version 9.32

240.1 is the dbversion for Asset Manager version 9.31

250 is the dbversion for Asset Manager version 9.40

 

 

Workaround / Fix

The dbversion consists of a major number and a minor number in the format <majornumber.minornumber> , eg: 240.2

If the major number matches the client can connect to the database, hence 9.32 client can connect to 9.30 database but 9.40 client cannot connect to 9.32 database.

"HP Support
If you find that this post or any post resolves your issue, please make sure to mark it as an accepted solution."
Please use plain text.
Advisor
rammohanreddy
Posts: 14
Registered: ‎12-06-2013
Message 17 of 17 (1,280 Views)

Re: issue while connecting to HP AM 5.22 database oracle 11g with the HP asset manager 9.4

Could your please instruct me how to fix this error, i am unable to find the proper solution for it.

 

 

Thanks,

Ram

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation