Cannot connect to sqlplus as / as sysdba

Dear Folks,
I am not able to connect to sqlplus as / as sysdba .I can see remote_os_authent=true,in the sqlnet.ora SQLNET.AUTHENTICATION_SERVICES= (NTS)
but for some reasons i am not able to connect it with / as sysdba.Kindly help me with this issue .Thanks in advance.
my enviroinment .
oracle 10.2.04 sparc 64 bit
sun solaris 10 sparc 64 bit

Prasanna.N wrote:
Dear Folks,
I am not able to connect to sqlplus as / as sysdba .I can see remote_os_authent=true,in the sqlnet.ora SQLNET.AUTHENTICATION_SERVICES= (NTS)
but for some reasons i am not able to connect it with / as sysdba.Kindly help me with this issue .Thanks in advance.
my enviroinment .
oracle 10.2.04 sparc 64 bit
sun solaris 10 sparc 64 bitAnd what error you get?!
Kamran Agayev A.
Oracle ACE
My Oracle Video Tutorials - http://kamranagayev.wordpress.com/oracle-video-tutorials/

Similar Messages

  • Cannot connect via sqlplus as sysdba

    Hi,
    I have Oracle 10g setup on Redhat Enterprise v4. I was able to do everything I needed until I rebooted. Now I can't connect using sqlplus. I get error ora-01031 when I type "connect system/*** AS SYSDBA" Anyone know what why this is happening?
    Any help would be appreciated.
    Thanks,
    Adam

    According to me this should be dba, why its showing the group as oracle?I'm not sure why it's showing up as oracle. Do I need to change this? As far as I can tell, oracle is a group that no user is a member of.
    Did you ever able make connection using / as sysdba?On this computer, I don't think I ever logged in as sysdba other than just as a system user.
    What group did you specify while installing the software?groupadd oinstall
    groupadd dba
    groupadd oper
    usermod -g oinstall -G dba oracle
    Pretty much followed http://www.oracle-base.com/articles/10g/OracleDB10gR2InstallationOnRedHatAS4.php and the oracle docs on installation.
    Message was edited by:
    user529261

  • Cannot connect with "SYS@MYDB AS SYSDBA"

    Hello,
    I logged in as os user oracle and do:
    sqlplus "SYS@MYDB AS SYSDBA"
    After entering the right password I get this error:
    This returns a ORA-01031: insufficient privileges
    MYDB is a local database.
    sqlplus "SYS AS SYSDBA"
    and
    sqlplus "/ AS SYSDBA"
    both work.
    I don't use password files (and I don't want to).
    Doing the first statement on a remote database (Win2K) works also. If the remote database is a Linux
    machine I receive again a ORA-01031.
    Any ideas whats wrong here?
    Kai

    ensure:
    a. The listener is running.Is running.
    b. there is a definition for MYDB in the local tnsnames file.Is done. There is also oracle names running. sqlplus scott/tiger@MYDB works. So no problem here.
    c. There is an entry like: remote_login_passwordfile=EXCLUSIVE or SHARED in your init file.I don't want to use a password file.
    More ideas?
    Kai

  • Cannot connect to sqlplus

    I am getting the following error when trying to connect sqlplus as sys user. Can anyone explain how to resolve it.
    I just copied the oracle binaries from different server and restored here. After copied I run the relink command also. $ORACLE_HOME/bin/relink all.
    ld.so.1: oracle: fatal: libskgxp10.so: open failed: No such file or directory
    ERROR:
    ORA-12547: TNS:lost contact
    Also i can see the file libskgxp10.so on $ORACE_HOME/lib directory.
    Edited by: Imankhan on May 14, 2010 1:29 AM

    I set the oracle_home and PATH.
    I not have any database in that server. I just copied the oracle binaries to create the new database. I also did relink all
    When i try to connect sqlplus to create a database i am getting the following error. But i can connect sqlplus as nolog.
    bash-3.00$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.2.0 - Production on Fri May 14 18:06:50 2010
    Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
    SQL>
    Edited by: Imankhan on May 14, 2010 3:07 AM

  • Cannot connect to database via TNS

    Hello!
    I installed XE with default settings and have some trouble. I cannot connect to database via TNS. Two symptoms:
    1. I can connect with SQLPLUS system/pwd (locally, without tns name input), but CANNOT connect with SQLPLUS system/pwd@EX (WITH TNS NAME input).
    2. I cannot start Database Home Page.
    How to avoid this problem? Any ideas?
    DETAILS:
    PC configuration: Win2k+SP4, 512Mb, Outpost Firewall (disabled!), No another Oracle products being installed.
    TNSNAMES.ORA file:
    ************* BEGIN TNSNAMES *****************************************
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pz)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    ************* END OF TNSNAMES *****************************************
    Listener status:
    ************* BEGIN STATUS *****************************************
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Prod
    ction
    Start Date 22-MAR-2006 17:27:15
    Uptime 0 days 1 hr. 8 min. 53 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File D:\oracle\ora10xe\app\oracle\product\10.2.0\server\ne
    work\admin\listener.ora
    Listener Log File D:\oracle\ora10xe\app\oracle\product\10.2.0\server\ne
    work\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pz)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation
    HTTP)(Session=RAW))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XEXDB" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "XE_XPT" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "xe" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    The command completed successfully
    ************* END OF STATUS *****************************************
    NETSTAT -an results:
    ************* BEGIN NETSTAT *****************************************
    Proto Local Address Foreign Address State
    TCP 0.0.0.0:1521 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:2298 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:2455 127.0.0.1:8080 ESTABLISHED
    TCP 127.0.0.1:8080 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:8080 127.0.0.1:2382 CLOSE_WAIT
    TCP 127.0.0.1:8080 127.0.0.1:2455 ESTABLISHED
    TCP 192.168.200.49:1521 192.168.200.49:2298 ESTABLISHED
    TCP 192.168.200.49:2298 192.168.200.49:1521 ESTABLISHED
    <truncated>
    ************* END OF NETSTAT *****************************************
    I found following error in SQLNET.LOG:
    *************** START LOG *********************************************
    Fatal NI connect error 12570, connecting to:
    (LOCAL=NO)
    VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
         Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
    Time: 22-MAR-2006 17:28:59
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12570
    TNS-12570: TNS:packet reader failure
    ns secondary err code: 12560
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    *************** END OF LOG *******************************************

    I successfully connect with XE client to another Oracle databases from LAN, including 8i and 9i databases.
    But cannot connect from another machines to my XE.

  • Cannot connect to new DB by tnsname entry.

    I created 2 oracle home, /stage/product/10g and /oracle/product/10g. Both are using /oracle as $ORACLE_BASE. I am not sure if this is ok, if the $ORACLE_BASE is not part the access path of $ORACLE_HOME.
    Then, I created a database (SID=stage) with $ORACLE_HOME as /stage/product/10g and listener tnsnames.ora. With my oracle logon setting, I can connect to oracle as sqlplus username/password, but I cannot connect as sqlplus username/password@stage. Got the error: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor. I got error: ORA-12560: TNS:protocol adapter error while I am trying to connect from remote server. Where is my problem?
    Thanks for help,

    Here is the information:
    ldrpadxdb01|stage|/home/oracle $ id
    uid=101(oracle) gid=105(dba) groups=105(dba),106(oinstall)
    ldrpadxdb01|stage|/home/oracle $ env | sort
    AGENT_HOME=/oracle/product/agent10g
    _=/bin/env
    CVS_RSH=ssh
    G_BROKEN_FILENAMES=1
    HISTSIZE=1000
    HOME=/home/oracle
    HOSTNAME=ldrpadxdb01
    INPUTRC=/etc/inputrc
    LANG=en_US.UTF-8
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    LOGNAME=oracle
    LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
    MAIL=/var/spool/mail/oracle
    OEM_HOME=/oracle/product/agent10g
    ORACLE_BASE=/oracle
    ORACLE_HOME=/stage/product/10g
    ORACLE_SID=stage
    PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin:/stage/product/10g/bin:/stage/product/10g/OPatch:/usr/bin/cc:/home/oracle/dba/scripts
    PS1=ldrpadxdb01|$ORACLE_SID|$PWD $
    PWD=/home/oracle
    SHELL=/bin/bash
    SHLVL=1
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    SSH_AUTH_SOCK=/tmp/ssh-VAItjx8945/agent.8945
    SSH_CLIENT=10.10.10.43 58662 22
    SSH_CONNECTION=10.10.10.43 58662 10.10.11.175 22
    SSH_TTY=/dev/pts/3
    TERM=vt100
    USER=oracle
    ldrpadxdb01|stage|/home/oracle $
    ldrpadxdb01|stage|/home/oracle $ lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.5.0 - Production on 16-JUN-2011 19:44:32
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ldrpadxdb01)(PORT=1522)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.5.0 - Production
    Start Date 16-JUN-2011 16:08:27
    Uptime 0 days 3 hr. 36 min. 5 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /stage/product/10g/network/admin/listener.ora
    Listener Log File /stage/product/10g/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ldrpadxdb01)(PORT=1522)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    --====================
    listener.ora
    --====================
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /stage/product/10g)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ldrpadxdb01)(PORT = 1522))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    --=========================
    tnsnames.ora
    --=========================
    STAGE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ldrpadxdb01)(PORT = 1522))
    (CONNECT_DATA =
    (SERVICE_NAME = STAGE)
    The SID=STAGE
    SQL> select * from global_name;
    GLOBAL_NAME
    STAGE

  • Cannot sqlplus sys as sysdba from remote server :ORA-12154

    Hi,
    I am trying to connect from linux VM app server to the database as sys as sysdba but it returns TNS error. I verified that listener is up, the REMOTE_LOGIN_PASSWORDFILE is exclusive and there is password file.
    [ORACLE@SERVER admin]$ sqlplus sys as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Apr 12 21:45:08 2013
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    ==============================================
    It works when I give the DB name
    [ORACLE@SERVER admin]$ sqlplus sys@ODB2 as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Apr 12 21:49:50 2013
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>
    ==================================================
    Could anyone please help me with the issue ?
    Edited by: Cherrish on Apr 12, 2013 10:53 PM

    Cherrish wrote:
    Hi,
    I am trying to connect from linux VM app server to the database as sys as sysdba but it returns TNS error. I verified that listener is up, the REMOTE_LOGIN_PASSWORDFILE is exclusive and there is password file.
    [ORACLE@SERVER admin]$ sqlplus sys as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Apr 12 21:45:08 2013
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specifiedRealize that sqlplus line above shows no @TNS_ALIAS so no SQL*Net should be used to connect.
    please type EXACTLY (line for line) as shown below
    env | sort
    sqlplus
    / as sysdba
    COPY the results from above then PASTE all back here

  • Unable to connect to sqlplus .. sys as sysdba .. No listener in Oracle 11G

    Hi ,
    I have installed Oracle 11.2.0 . When connecting to sqlplus with sys as sysdba . Getting error as NO listener .
    I started listener . But finally getting the message as
    The listener supports no services
    The command completed successfully
    Kindly help

    I am getting the same message
    Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/11.2.0/dbhome_1/log/diag/tnslsnr/oracledb/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracledb.example.com)(PORT=1521)))
    The listener supports no services
    The command completed successfully
    I don't find the services entry here .

  • Can connect using sqlplus, cannot using SQL Developer

    Hi
    I cannot find out why I cannot connect using SQL developer, while sqlplus works fine with the same login information.
    *1. TNS ping:*
    C:\>TNSPING manila
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 24-GRU-2
    010 13:28:38
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.171)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
    OK (370 msec)
    *2. sqlplus*
    SQL> CONNECT SULU_DEV/<pass>@MANILA
    Connected.
    *3. sqlplus - by IP*
    SQL> CONNECT SULU_DEV/<pass>@10.0.0.171:1521/XE
    Connected.
    *4. SQL Developer*
    Username: SULU_DEV
    Connection type: TNS
    Network alias: MANILA
    Error: I/O Exception: Connection reset
    *5. SQL Developer - by IP*
    Username: SULU_DEV
    Connection type: Basic
    Hostname: 10.0.0.171
    Port: 1521
    SID: xe
    Error: I/O Exception: Connection reset
    *6. SQL Developer - without username*
    Username: <blank>
    Connection type: TNS
    Network alias: MANILA
    Error: ORA-01017: invalid username/password
    It seems that I have connection to the server, but from some reason it is disconnected when I'm using SQL Developer, but works fine with sqlplus.
    Any ideas on what it might be?
    Thank you in advance,
    Regards,
    Marek

    The connection export function it's available in 2.1.1.64, you need to right click on the main Connections node, and it will allow you to export all or part of the current connections, or import from a previously exported file.
    As for the highlight statement feature it's available in SQLDeveloper; actually you do not even have to highlight the required statement, as long as you take the habit of ending every statement with a ";", in this case you only need to place the caret inside the statement and SQLDeveloper will automatically highlight it for you (if you want to manually highlight a statement you can still do so without problems).
    Finally as a last try to solve your connection problem without having to call for network support you could try to check
    Preferences -> Database -> Advanced -> Use OCI/Thick DriverThis will force SQLDeveloper to use your oracle client for connections instead of it's native JDBC based connections (even if you use TNS based connections you will still use JDBC unless you have this checked).
    As for other graphical tools for Oracle there are many both free or for a price.
    1) In the for price world Toad stands out, i heard of a free option too but I'm not sure of the limitations.
    2) For free you can use DBVisualizer which is fairly good (never used it too much thou).
    3) Finally there is SQuirreL which is both free and open source but it has fairly basic functionality compared to the two above.
    Obviously there are many others, but IMHO few will provide you with the same functions of SQLDeveloper or Toad for Oracle databases

  • Cannot connect as a new user to second database from SQLPLUS

    Hello,
    I've created a new database with CREATEDB POLITE jantest.
    I connected via sqlplus as system/mgr@ODBC:POLITE:jantest. This
    works fine, I run de poldemo.sql file and that worked fine also.
    Then I created a user jan identified by jan. Then I tried to
    connect to this user with SQLPLUS as
    jan/jan@ODBC:POLITE:jantest. I get an error message that the
    user does not exist. Then I tried to connect as
    scott/tiger@ODBC:POLITE:jantest. This worked, however is was
    then connected to the default 'polite' database.
    Has anyone experienced the same kind of weird problems.
    null

    Jan Boersma (guest) wrote:
    : Hello,
    : I've created a new database with CREATEDB POLITE jantest.
    : I connected via sqlplus as system/mgr@ODBC:POLITE:jantest. This
    : works fine, I run de poldemo.sql file and that worked fine
    also.
    : Then I created a user jan identified by jan. Then I tried to
    : connect to this user with SQLPLUS as
    : jan/jan@ODBC:POLITE:jantest. I get an error message that the
    : user does not exist. Then I tried to connect as
    : scott/tiger@ODBC:POLITE:jantest. This worked, however is was
    : then connected to the default 'polite' database.
    : Has anyone experienced the same kind of weird problems.
    Response:
    when you create a database under oracle lite, you first
    configure this database via ODBC(for example give to this
    database a sourcename jan) then connect to this database using
    system/manager@jan. Thenafter you should grant previllege ddl to
    user jan before connecting :
    grant ddl to jan
    and now you can connect using : connect jan/jan@jan
    null

  • Cannot connect to database after installing 10g

    Hello friends at www.oracle.com ,
    after installing Oracle 10g, I am trying to use programs like SQL*Plus or Forms Builder. However, these programs are asking me for the host string, and:
    - I cannot simply ignore this question, because I cannot connect without this information.
    - But I don't know how I can configure a host string for local access.
    - And I don't know if there's already a default host string for me to use after installing Oracle 10g, because I have no practice in database configuration, since I'm a developer.
    Please help me.
    Best regards,
    Franklin Goncalves Jr.

    Hi ,
    Few pointers which may help you , but a small caveat all instructions pertaining to way we do internally in oracle , so there could be some mismatch at customer end , but more or less logic should be same , in case you can't any step revert back :
    1. When Db asks you for connect string essentially it asks for the complete description of the db to connect including :
    Db server machine name / ip - that can be resolved from your system if it's a remote server .
    Username , Password ,
    Db Instance Name - TnsAlias mentioned in TnsNames.ora .
    Now there are few Env. variables that you need to set before running / starting an oracle db instance .
    1. Oracle_Home - Essentially Oralce Installation directory .
    2. Oracle_sid - unique identifier for Oracle Instance .
    3. For OracleDb only set T_Work and TNS_ADMIN env. variables as %Oracle_Home%\work directory and place your Listener.ora file in that folder .
    4. Make your initial parameter file init<Oracle_Sid>.ora in %Oracle_Home%\database -- default location .
    5. Create Oracle Instance specific services to run on a Windows machine , essentially they will be two and default nomenclature is :
    Oracle Service - OracleService<Oracle_Sid>
    Listener Service - Oracle<oracle_sid>TnsListener
    Now in %Oracle_Home%\bin directory you have couple have tools to help you in whole process including lsnrctl.exe , tnsping.exe , sqlplus.exe .
    and onec you start oracle instance like this :
    SQlPlus "/as sysdba" -- OS Authentication
    --- Connected to Idle instance
    Sql> startup --> this will take default parameter file
    Check out dump location for log and trace files generated if enabled .
    Now client setting :
    1. This is the place where you need appropriate connect string with all components as mentioned above .
    Check out any good site for exact syntax , but you need to make sure regarding client you are using for e.g:
    ODP.Net , Java Driver etc .
    For Client few important settings :
    Execution directory should contain tnsnames.ora
    Create T_WORK and TNS_ADMIN for execution directory .
    check out for listener connectivity using :
    tnsping <TnsAlias>
    Imp -- Include all relevant stuff in System PATH for execution from anywhere .
    Once it connects tehn you can use appropriate username / password for connecting with appropriate connection string .
    Normally while installing oracle you would have set the username and password to be changed later .
    or otherwise onec you log in as sysdba, you can create new username/password and give it sysdba permissions .
    Also imp. thing for connecting from a remote system is having Sqlnet.ora authentication file in client's T_WORK and TNS_ADMIN .
    I hope it helps upto some extent .
    regards ,
    Mrinal

  • Cannot connect to Database attempts hang (no errors)

    hi, i have oracle 9.2 on solaris 5.8
    weirdly, today we could not connect the db anymore. even these does not work on the server:
    sqlplus /nolog
    SQL> connect /as sysdba
    sqlplus "/ as sysdba"
    sqlplus system/**
    ALL attemps just hang , no errors.
    what can i do?
    i think the only way is reboot the machine?
    any ideas?

    here is the output
    bash-2.05# vmstat 2 20
    kthr memory page disk faults cpu
    r b w swap free re mf pi po fr de sr f0 m0 m1 m2 in sy cs us sy id
    0 0 0 1940080 1012952 9 25 51 0 0 0 0 0 7 5 7 729 777 245 15 3 82
    0 0 0 1828840 855200 0 4 0 0 0 0 0 0 386 7 387 5626 62112 3614 25 40 35
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 384 7 384 5611 62299 3786 23 40 37
    0 1 0 1828840 855200 0 0 0 0 0 0 0 0 372 6 373 5582 63459 3754 24 39 37
    0 2 0 1828840 855200 0 0 0 0 0 0 0 0 391 7 391 5640 63245 3976 23 38 40
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 374 18 374 5789 61626 3760 24 37 3
    9
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 373 7 373 5536 62333 3888 20 47 34
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 376 7 376 5585 62463 3594 24 42 35
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 354 8 354 5364 61787 3396 24 41 36
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 378 7 378 5616 61667 3777 18 47 35
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 364 11 364 5494 63075 3616 24 40 3
    6
    0 2 0 1828840 855200 0 0 0 0 0 0 0 0 388 8 388 5733 62161 3947 22 39 39
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 388 8 388 5702 61873 4142 22 43 35
    0 1 0 1828840 855200 0 0 0 0 0 0 0 0 383 7 383 5584 63365 3815 28 33 40
    1 0 0 1828840 855200 0 0 0 0 0 0 0 0 387 7 387 5643 63920 3846 29 29 41
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 378 10 378 5650 61793 3914 23 40 3
    6
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 388 7 389 5644 62798 4064 24 36 40
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 377 11 377 5592 62206 3941 23 47 3
    0
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 379 8 380 5605 61121 3959 21 50 29
    kthr memory page disk faults cpu
    r b w swap free re mf pi po fr de sr f0 m0 m1 m2 in sy cs us sy id
    0 0 0 1828840 855200 0 0 0 0 0 0 0 0 379 7 379 5511 61964 3549 19 46 35
    Also, i cannot connect the database, i dont have any active connections, cannot run any sql statements..

  • Cannot connect to database using SQL*Plus

    Hi, I have Oracle 10g XE installed in my labtop and I cannot connect using SQL*Plus.
    I can connect using the broser User Interface though, which I was able to do after doing the following procedure to change the password of the sys account:
    -     open a command prompt
    -     - type sqlplus
    -     On the “Enter user-name” line, type /as sysdba
    -     On the SQL> prompt, type alter user sys identified by NewPassword;
    But the thing is that even though I am able to connect using sys/NewPassword from my browser UI, I dont get the same result when doing it using the SQL prompt.
    What I am trying to do is this:
    SQL> connect sys/NewPassword
    Then I get first a warming saying that I need to use either sysdba or sysoper to connect to the system account, but neither of those work.
    Can anyone advice me on this matter?
    Thanks in advance

    Thanks for that.
    I run the command to list the usernames on the database and I got SYS and SYSTEM in the list. But again, when I try to use SYS with a password that I know is working because I can access it through the browser UI, it doesnt work. It seems like this sys is different to the sys I used in the UI.
    I dont know if I am explaining myself correclty... In the Browser UI I use sys, and a password and I get connected to the sys account. However, if I try to use the same sys.password combination from my sqlplus prompt, I get error messages
    Does this make sense at all?

  • Metadata Repository Creation Assistant cannot connect SYS

    Hi!
    I have Oracle10.2.0.1.0 running on Oracle EL4. ORACLE_HOME is /opt/app/oracle/product/10.2.0/db_1 and ORACLE_SID is "orcl".
    I have installed MRCA in /opt/app/oracle/product/10.1.4.0.1/mrca. After installation, I run MRCA with /opt/app/oracle/product/10.1.4.0.1/mrca/runRepca. When I get to the section to enter connection information, I enter the SYS password but it fails to connect.
    I can go into sqplus and do sqlplus /nolog , and then do connect / as sysdba (as user oracle). That works. However, I have the administrator client software installed in /opt/app/oracle/product/10.2.0/client_1, and when I launch "oemapp control" I cannot connect sys as sysdba (I get an insufficient privileges error).
    Please help!

    there are prerequisits to RepCA, did you check all of them?<<To be honest with you, no.
    The OAS MRCA User's Guide has over 25 pages of install requirements (Sections 1.3, 1.5 and 1.6, and surprisingly, the section for installing RepCA, 1.4 comes before the requirement sections for the database and OID), with lots of rabbit trails to follow (for steps here, go here; this stuff is discussed over there, etc) to follow before you can get the whole picture.
    In all fairness to Oracle, there's plenty of information there in the docs, not just in a well organized manner, IMHO. Of course, complexity helps Oracle University fill up training sessions. :) For someone who simply wants a cookbook to get up and running in as short a timeframe as possible so that s(he) can start doing work with these technologies (for example, a Java developer that doesn't need/care to know about Oracle DB administration but that needs access to a DB or Portal instance to work on his/her projects but has no access to a DBA resource) following a long trail of docs, release notes, addendums, and interspersed bits of knowledge is just running out of luck.
    So what I did is, since RepCA runs its own requisites check when you launch the installer, and my intended install met all of them (except shmmax being like 4GB; my system only has 3GB) I went with that. With help from this forum I was able to figure out how to proceed with the install... now the message about RepCA not supporting Oracle DB 10g 10.2.0.1.0... on Oracle EL4... if it doesn't work I don't know yet what I'm going to do. I've spent significant time working through the matrix to identify a set of components that can happily live with each other and allow me to do some work!
    Thanks for your input. I'll follow the link and be more patient and read more (on the prerequisites) and hopefully I'll be able to navigate the maze in order to help out another newbie tomorrow.
    Thx!

  • Dbstart works, but cannot connect

    Hi,
    this is my first post and I am new to oracle administration, but I think this is some kind of wierd:
    Here is dbstart output (works alright):
    SQL*Plus: Release 10.1.0.4.0 - Production on Mi Apr 13 19:18:19 2005
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> Bei einer nicht hochgefahrenen Instance angemeldet.
    SQL> ORACLE-Instance hochgefahren.
    Total System Global Area 524288000 bytes
    Fixed Size 779996 bytes
    Variable Size 326113572 bytes
    Database Buffers 197132288 bytes
    Redo Buffers 262144 bytes
    Datenbank mit MOUNT angeschlossen.
    Datenbank geöffnet.
    SQL> Verbindung zu Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Production
    With the Partitioning, OLAP and Data Mining options beendet
    Database "ora1" warm started.
    Here is my try to conenct with sqlplus:
    [oracle@pele ~]$ sqlplus / as sysdba
    SQL*Plus: Release 10.1.0.4.0 - Production on Mi Apr 13 19:20:02 2005
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Bei einer nicht hochgefahrenen Instance angemeldet.
    This looks like my env settings are bad (but they are ok):
    [oracle@pele ~]$ env|grep -i ORACLE
    USER=oracle
    LD_LIBRARY_PATH=/u01/app/oracle/OraHome_1//lib
    ORACLE_SID=ora1
    ORACLE_BASE=/u01/app/oracle
    MAIL=/var/spool/mail/oracle
    PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin:/u01/app/oracle/OraHome_1//bin
    PWD=/home/oracle
    HOME=/home/oracle
    LOGNAME=oracle
    ORACLE_HOME=/u01/app/oracle/OraHome_1/
    [oracle@pele ~]$
    And here is oratab, which corresponds to my env settings:
    [oracle@pele ~]$ cat /etc/oratab|grep ora1
    ora1:/u01/app/oracle/OraHome_1:Y
    So the problem is, dbstart seems to work, I can see all the oracle processes, the shared mem ... but I cannot connect to it. Manually starting the db per sqlplus works alright. But dbstart seems to do something on his own.
    Thanks...
    Oracle 10g, 10.1.0.4.0, Redhat EL4

    No, dbstart starts the database.
    This is after a 'dbstart' :
    [oracle@pele ~]$ ipcs
    ----- Gemeinsamer Speicher: Segmente -----
    Schlüssel shmid Besitzer Rechte Bytes nattch Status
    0xa42e2390 557057 oracle 640 526385152 15
    ----- Semaphorenfelder -----
    Schlüssel SemID Besitzer Rechte nsems
    0xe9be8a00 2392072 oracle 640 154
    ----- Nachrichtenwarteschlangen -----
    Schlüssel msqid Besitzer Rechte used-bytes messages
    [oracle@pele ~]$ sqlplus / as sysdba
    SQL*Plus: Release 10.1.0.4.0 - Production on Do Apr 14 16:10:49 2005
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Bei einer nicht hochgefahrenen Instance angemeldet.
    SQL> startup
    ORACLE-Instance hochgefahren.
    Total System Global Area 524288000 bytes
    Fixed Size 779996 bytes
    Variable Size 326113572 bytes
    Database Buffers 197132288 bytes
    Redo Buffers 262144 bytes
    ORA-01102: Datenbank kann nicht im EXCLUSIVE-Modus mit Mount angeschlossen werden.
    SQL>
    So it is running.
    Can you elaborate on "10.1.0.4 is buggy under Linux"?
    Btw. I had the same error on 10.1.0.3.
    And this is alert.log:
    scumnt: failed to lock /u01/app/oracle/OraHome_1//dbs/lkORA1 exclusive
    Thu Apr 14 16:11:05 2005
    ORA-09968: scumnt: unable to lock file
    Linux Error: 11: Resource temporarily unavailable
    Additional information: 14852
    Thu Apr 14 16:11:05 2005
    ORA-1102 signalled during: ALTER DATABASE MOUNT...
    Thanks for your reply
    Rainer

Maybe you are looking for