Link to home
Start Free TrialLog in
Avatar of gilboker
gilbokerFlag for Hong Kong

asked on

LOG ON To Oracle and PLSQL

Hi,
I just installed ORACLE DB on my system (win XP). After all instalation i want to log in to DB, create new DB, logIn to PLSQL to start quering but every time user name and pass are wrong!!!


I can swear that i input admin:admin so it will be easy for me but cannot!

Can someone pls explain me simply what to do so i can logIn

another think, what is NET SERVICE NAME i have to input and in the PLSQL Host String.

GOD i just want to connect, why so complicated? why not like MSSQL??!!

Thank you
Avatar of Aneesh
Aneesh
Flag of Canada image

gilboker,
> what to do so i can logIn
by default the username/password for the Oracle will be scott/tiger
>I just installed ORACLE DB
what version? I assume on windows environment?
did you install only the software, or did you indeed create the starter db from the setup?
What database SID did you give the oracle database? if you don't know, check in the Windows Services Applet, you will find some

>another think, what is NET SERVICE NAME i have to input and in the PLSQL Host String.
use the <SID> value from above when connecting locally

>GOD i just want to connect, why so complicated? why not like MSSQL??!!
well, Oracle is a product that is "older", ie more evaluated, more functionality, more configurations possible.
indeed, mssql is more like "install and done", but Oracle is not that way.
That's why a MSSQL MCDBA Certificate is quite easy to get, but Oracle full OCP path is very difficult.
Also, a true Oracle DBA has MUCH higher skills (and salary) than MSSQL DBA.

I assume you try to connect with SQL*Plus or what?
Avatar of gilboker

ASKER

Angel
yes i installed Orcale 10g enterprise!
My DB name is default orcl

i cant input my user name and password when try to connect in sqlPlus or in administration assistant.

I just installed it , didnot make any new database yet!!!

Is ther a way to retrive it?
Avatar of dave4dl
dave4dl

from a command line type "sqlplus" and tell us what it says (normally it should ask you for a username and password but you said it isnt even getting to that point)
from command line/windows sqlsplus:
sqlplus admin/admin@orcl

or, from command line

SET ORACLE_SID=ORCL
sqlplus admin/admin
Its funny
This morning i made a new database and gave him pass admin. it was fine but now again i can logIn!!!
do you mean you can't log in?
i bet that the problem is that the database is not started or the listener is not started.

to make sure the database is started, open the orcl admin page (a link in your start menu) and click the button that says startup database if it says it is down (it will show this before asking you for any user/password if it is down)

if the database is started then run this from a command line:
lsnrctl start LISTENER

if it still doesnt work your going to have to give me the info i requested (what it says when you type "sqlplus" on a command prompt)
oh, and when you type your username at the command prompt you have to use the form "username@orcl"
Please check your database and listener.

to check :
Click Start -> Control Panel -> Administrative Tools -> Double click Services.
Scroll down and find
  OracleOraDb10g_home1TNSListener
  OracleServiceORCL

and check the status whether they are started or not. If not, you can start the service here.

If all services are started, and if you still can't login, please tell me what sort of error message that you get.
You probably need to configure using Net Configuration Assistant.

Pls try this first.


kg1973
Hi , I get errot "LISTENER DOES NOT CURRENTLY KNOW OF SERVICE REQUESTED IN CONNNECT"


for the othre DB i just get user name and password not known
Have you started the listener and database services ?
Have you ever configure using Net Configuration Assistant after you installed the database ?
Is your machine connected to any network during the installation ?


Have you started the listener and database services ? YES
Have you ever configure using Net Configuration Assistant after you installed the database ? NO
Is your machine connected to any network during the installation ? NO

I think i will try to reinstall all!

Funny i was ok yesterday but today machine says DB Locked.

ASKER CERTIFIED SOLUTION
Avatar of KG1973
KG1973

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
KG1973
Thank you for all the info. I just created a new DB call TEST with User name and pass i can remember for testing.

Last question, Can i add tables like in MSSQL? or i have to create PLSQL statment to create them for me so i can see them in tree view in Administration assistant?


Points go to you mate!

:)

Thx
I am glad to hear that :-)

Last question, Can i add tables like in MSSQL? or i have to create PLSQL statment to create them for me so i can see them in tree view in Administration assistant?

Yes you can. You can use sql command to create or add tables.
OR If you are dba/administrator, you can use Oracle Enterprise Manager to manage your database.  
A lot of things can be done with this tools.
This OEM is a separate service that need to be started similar with your DB. ( this might slow down your pc )
check the status (services) and scroll down -OracleDBConsoleTEST and start the service.

Once the service is started, Run Internet Explorer and type this http:\\127.0.0.1:5500\em OR http:\\yourcomputername:5500\em
You need to login as system/password/normal

Once you are in, click Administration tab... there you go
If you don't know anything, just click help... its really help you...

Good luck.