Solved

Using sqlplus to connect to Oracle installation bundles with RSA Authentication Manager 7x

Posted on 2009-07-14
7
1,303 Views
Last Modified: 2013-12-19
Hi,

We are currently testing RSA Authentication Manager 7x as we want to upgrade our existing infrastructure.. RSA Auth Manager 7 uses oracle as there database system. I have installed RSA Authentication Manager 7 on a RHEL 4 ES server. The software it self works fine. Since we make lot of reports useing sql i tried to connect to oracle using sqlplus command. Now i am facing a lot of trouble to make it work. I have attached the screenshots of directory structure of RSA Auth Manager installation and directrory structure of oracle installation within RSA Auth Manager installation and my bashrc file. I have also attached the screenshot of error i am getting. Please consider that i am a total newbie in oracle...
oracle.jpg
sqlplus-error.jpg
sqlplus-error-2.jpg
0
Comment
Question by:kvjajoo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
7 Comments
 
LVL 40

Accepted Solution

by:
mrjoltcola earned 350 total points
ID: 24848618
That error comes from either an invalid ORACLE_SID or invalid ORACLE_HOME, or the database is down.

Try to identify which database instance is running.

ps -ef | grep smon

Then set the ORACLE_SID according to what you see. Example: If the process name is ora_smon_CAT then your ORACLE_SID=CAT

Also verify ORACLE_BASE and ORACLE_HOME, normally they are not the same. If you go to ORACLE_HOME, you should see under there directories like (apex, assistants, bin, etc.... lib, lib32, rdbms)


If you don't see an instance process, then the problem is you need to start it.

sqlplus / as sysdba
SQL> startup open;

And to start the listener:

lsnrctl start


But prior to this, verify ORACLE_HOME and ORACLE_SID as directed above.





0
 
LVL 1

Author Comment

by:kvjajoo
ID: 24849715
Hi mrjoltcola,

Thanks for the reply,

I have specified ORACLE_SID paramater as same as output of ps -ef | grep smon command. But still i am getting error.

I am attaching three files which shows:
1. the error i am getting
2. Listener.ora
3.output of "lsnrctl services localhost" command
Please go through this files and help me resolve this issue...

sqlplus-error.txt
listener.ora.txt
lsnrctl-services-command.txt
0
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24851041
1) No need to use the @ syntax in your connect if the database is local and you have set ORACLE_SID. sqlplus will connect to the database specified by ORACLE_SID by default. Using @ syntax forces it to go through the listener / TCPIP

2) When you DO use the @ syntax, the dont use @localhost, use the name of the service alias.

sqlplus aceadm/password@VLSOR8JC
0
 
LVL 1

Author Comment

by:kvjajoo
ID: 24856924
Hi mrjoltcola,

I think your solution works.. But now i am facing new problem... None of my usernames and password are working... Is there anyway where i can create a user and password in order to access the database ?? also when i give "lsnrctl status" command the second last line in output says "The listener supports no services" ...
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Migration from sql server to oracle 5 51
error doing substr 3 52
Pass multiple values or string arrays in java as a parameter 3 73
Oracle Mulit-site configuration 28 73
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and theā€¦
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question