Developer unable to connect SQL database Oracle as a SYSDBA

Hi all
Recently, I installed SQL Developer3.0 on my machine and try to create the connection to the local Oracle server. But something confuses me. When I login as normal role, it can connect DB successfully; When I connect as sysdba role named sys, it has always failed and show "name of user and password invalid. I don't know that the username and password are right, because I haved connected the oracle DB from pl/SQL with the same user name and password. And I also chose the role as sysdba. SQL Developer3.0 not support connect as sysdba? I would be very grateful if someone could give me a helping hand. Thanks in advance.

Hi 851634,

Do you need a password for remote sysdba (old link) file?
Cannot connect as sysdba in Oracle Enterprise Management Console

You can try to open a session (loopback) on the network as sysdba, which requires a password file.

-Turloch
Team SQLDeveloper

Tags: Database

Similar Questions

  • Unable to connect to the Oracle 10g transparent VBA code

    Dear all,

    I am unable to connect to the oracle database, use the code for the same below.
    And the name of the server is PRDCCB, my TNSNAMES file. ORA file is placed correctly, and defined environment variable path.
    Fanny created in VBA ADO objects.
    But am not able to connect error is always the driver's SQLSETConnectAttr failed

    Help, please



    Void Ora_Connection()

    Con Dim As ADODB. Connection
    Dim rs As ADODB. Recordset
    Dim query As String
    The con value = New ADODB. Connection
    Set rs = New ADODB. Recordset


    ' - Replace below highlighted the names with the corresponding values

    con. Open ("Driver = {Microsoft ODBC for Oracle};" & _)
    "CCBPRD = DESCRIPTION =" & _
    "(ADDRESS =(PROTOCOL=TCP)"& _
    "(HÔTE = 10.1.3.50) (PORT = 1521))" & _
    "(CONNECT_DATA = (SID = CCBPRD))); UID = Prasad; pwd = prasad23; »)

    ' - Open the above connection string.


    ' - Now connection is open and you can use queries to execute.
    ' - It will be open until you close the connection
    End Sub

    Replace pls

    con.Open ("Driver={Microsoft ODBC for Oracle}; " & _
    "CCBPRD=DESCRIPTION=" & _
    "(ADDRESS=(PROTOCOL=TCP)" & _
    "(HOST= 10.1.3.50)(PORT=1521))" & _
    "(CONNECT_DATA=(SID=CCBPRD))); uid=Prasad; pwd=prasad23;")
    

    with

    con.open ("Provider=MSDAORA;Data Source=CCBPRD;User ID=Prasad; Password=Prasad23;";)
    


    Rgds,

    Ahmer


    N.B.: To win a good reputation on the forums, and if you want that your question will be answered in due time. Kindly adopt a used to score your closed questions as soon as you give the answer. and be courteous to people who tries to help.

  • How to connect sql database to esxi to save all data from the virtual machine

    How to connect sql database to esxi to save all data from the virtual machine

    Please provide steps

    In simple terms, you cannot connect ESXi to SQL. Connect a vCenter SQL (Windows only).

    If you want to save all the data that is contained in your virtual machines, I suggest a backup solution.

    Suhas

  • After changing the orainventory place im unable to connect using the oracle user

    Hello

    IM using oracle 12 c on rhel 6 after correctly installing the software, I changed the location of oravinventory in/data/houses

    / u01/app/Oracle

    After making these changes im is no longer able to connect using the oracle user...

    also I back return changes I had made to the orainventory folder still unable to connect using the oracle user...

    any help on this would be greatly appreciated

    Sadia. wrote:

    Hello

    IM using oracle 12 c on rhel 6 after correctly installing the software, I changed the location of oravinventory in/data/houses

    / u01/app/Oracle

    After making these changes im is no longer able to connect using the oracle user...

    also I back return changes I had made to the orainventory folder still unable to connect using the oracle user...

    any help on this would be greatly appreciated

    Newer versions of oracle have implemented a great new technology to help solve problems, called "error messages."  Unfortunately, I can't find any reference to an error message named 'is no longer able to connect.

    And why you are moving your site from inventory?  When you have installed oracle, he put the inventory where he wanted.  There is no reason to try to change or replace.

  • Unable to connect target database using dbclient

    Hi all

    I installed database 11.2.0.2 successfully on linux machine.other machine is windows machine, I installed in CUSTOMER DB 11.2.0.2 by using db client unable to connect target database.


    Database version: 11.2.0.2(64 bit)

    Windows database: 11.2.0.2(32bit)


    Thank you
    GS

    I installed database 11.2.0.2 successfully on linux machine.other machine is windows machine, I installed in CUSTOMER DB 11.2.0.2 by using db client unable to connect target database.

    Set up Listener on the server?

    Can you tnsping from windows to linux machine?

  • Unable to connect pluggable database

    Hello

    Version: 12.1.0.2, platform: AIX, CBD: B12C, PDB: MYPDB1

    I am trying to connect newly created connectable to database. But it is throwing an error is not available and when I check open_mode is read/write for mypdb1 the database.

    Can you please help me where I am wrong? I fight with it more than a week.

    listener.ora :
    LSNRB12C =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = adc40)(PORT = 1550))
        )
      )
    
    
    SID_LIST_LSNRB12C =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = B12C)
          (ORACLE_HOME = /oracle/AIX/12102_64)
          (SID_NAME = B12C)
        )
        (SID_DESC =
          (ORACLE_HOME = /oracle/AIX/12102_64)
          (SID_NAME =MYPDB1)
        )
      )
    
    
    tnsnames.ora for pluggable database:
    MYPDB1 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = adc40)(PORT = 1550))
        )
        (CONNECT_DATA =
          (SERVICE_NAME = MYPDB1)
        )
      )
    
    
    adc40 {oracle}:>lsnrctl status LSNRB12C
    LSNRCTL for IBM/AIX RISC System/6000: Version 12.1.0.2.0 - Production on 09-SEP-2015 21:56:44
    Copyright (c) 1991, 2014, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=adc40)(PORT=1550)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LSNRB12C
    Version                   TNSLSNR for IBM/AIX RISC System/6000: Version 12.1.0.2.0 - Production
    Start Date                08-SEP-2015 23:21:16
    Uptime                    0 days 22 hr. 35 min. 28 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /oracle/AIX/12102_64/network/admin/listener.ora
    Listener Log File         /oracle/AIX/diag/tnslsnr/adc40/lsnrb12c/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=adc40)(PORT=1550)))
    Services Summary...
    Service "B12C" has 1 instance(s).
      Instance "B12C", status UNKNOWN, has 1 handler(s) for this service...
    Service "MYPDB1" has 1 instance(s).
      Instance "MYPDB1", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    
    
    adc40 {oracle}:>env |grep ORACLE
    ORACLE_BASE=/oracle/AIX
    ORACLE_SID=B12C
    ORACLE_HOME=/oracle/AIX/12102_64
    
    
    adc40 {oracle}:>sqlplus "/as sysdba"
    SQL*Plus: Release 12.1.0.2.0 Production on Wed Sep 9 22:01:50 2015
    Copyright (c) 1982, 2014, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
    
    
    SQL> select NAME,OPEN_MODE,RESTRICTED from v$pdbs;
    
    
    NAME                           OPEN_MODE  RES
    ------------------------------ ---------- ---
    PDB$SEED                       READ ONLY  NO
    MYPDB1                         READ WRITE NO
    MYPDB2                         READ WRITE NO
    MYPDB3                         READ WRITE NO
    
    
    SQL> create user c##1 identified by oracle container=all;
    User created.
    SQL> grant create session to C##1 container=all;
    Grant succeeded.
    SQL> sho con_name
    CON_NAME
    ------------------------------
    CDB$ROOT
    SQL>  alter session set container=mypdb1;
    Session altered.
    SQL> sho con_name
    CON_NAME
    ------------------------------
    MYPDB1
    
    
    SQL> connect c##1/oracle@adc40:1550/b12c
    Connected.
    SQL> connect c##1/oracle@adc40:1550/mypdb1
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    IBM AIX RISC System/6000 Error: 2: No such file or directory
    Additional information: 2311
    Additional information: 186818867
    Process ID: 0
    Session ID: 0 Serial number: 0
    
    
    Warning: You are no longer connected to ORACLE.
    
    
    
    

    Can you please tell me why it shows database is unavailable, even if mypdb is open?

    Thank you

    Arul

    You cannot connect to a PDB file through a registration of the listener static like this, because there is just no SID not named MYPDB1. You must register the services dynamically. In the root.

    ALTER system set local_listener = "adc40:1550";

    editing the system registry;

    --

    John Watson

    Oracle Certified Master s/n

  • Unable to connect to databases via Grid Control

    Hello world

    I have seen similar topics on the forums, but none of them could help me.

    I installed version OEM Grid Control 5 on a rhel 5.3. I started to deploy agents on multiple hosts (windows 2003 and linux). I now opened ports in the firewall:
    TCP_4889: agent-> control grid
    TCP_1521: grid-> agent control
    TCP_3872: grid-> agent control

    Agents are up and I see all the instances in the target/databases tab.
    Here's my problem:
    The State of each instance is Metric Collection error and the message is * "this database is not configured."

    When I click on Configure , then test the connection , I have the following error:
    Unable to connect to the database: IO exception: connection is the connection descriptor was (description = (address = (host = myserver_hostname)(protocol=tcp) (port = 1521)) (connect_data = (service_name = instance_name) (instance_name = instance_name)(UR=A)))

    When I connect to the server, I can connect to the database, the listener is in place. But emctl status dbconsole says:
    TZ set to Europe/Paris
    OC4J Configuration problem. $ORACLE_HOME/oc4j/j2ee/OC4J_DBConsole_servername_instancename not found.

    But this file is...

    Any idea?
    Thank you very much

    ORA-01017: name of user and password invalid.

    Network server connect to the use of target-> "general" user database

    "" So, make target you as 'general' on the database "not blocking" status and course of password.

    Example: on the basis of data target

    SQL > select username, account_status from dba_users where username = "GENERAL";

    USERNAME ACCOUNT_STATUS
    ------------------------------ --------------------------------
    OPEN DBSNMP

    SQL > connect dbsnmp/pasword@target_database

    After this trial once again ;)

  • Unable to connect to database through OEM

    I am trying to connect to a database through OEM as SYSDBA. By using the same user name and password, I can connect the OEM server through sqlplus database. However, when I try to connect via OEM, is getting an ORA-01017: username/password invalid name

    It seems that you are using the window, if yes please make sure you have activate the log on as batch jon

    Go to control panel, administrative tools.

    2. click on local security policy.

    3. policies, user rights assignment.

    4. double-click on, "log in as a batch.

  • Unable to connect to the Oracle Forms cmdlet after 30 Seconds (OATS)

    Hello

    While playback get error of OATS (Oracle Application Testing Suite) am most of the time 'Impossible to connect to the Oracle Forms applet after 30 Seconds (OATS)'.

    Please suggest solution for this type of error. I can't go further with this type of error.

    Kind regards
    Sairam

    Hi Sairam,

    GoTo OpenScript preference and change timeout for reading of the EBS/forms.

    Launch OpenScript, click view and select Preferences OpenScript. Then select Oracle EBS/functional forms under playback. Change timeout value.

    Kind regards
    Dembélé M

  • Unable to connect SQL Developer on APEX host Local workspace

    Hello world

    I'm very comfortable using SQL Developer. I installed Oracle XE 11 g. It included Application Express 4.0 and I downloaded 4.2.3 and manually updated. I have a workspace on the subject called TEST. I was wondering how I could connect to it and discover its tables using SQL Developer. I managed to get SQL Navigator to work with her.

    Any help will be appreciated.

    Hi 3030494,

    3030494 wrote:

    Please change your login username of "3030494" to something meaningful. Reference: Video tutorial how to change username available

    I'm very comfortable using SQL Developer. I installed Oracle XE 11 g. It included Application Express 4.0 and I downloaded 4.2.3 and manually updated. I have a workspace on the subject called TEST. I was wondering how I could connect to it and discover its tables using SQL Developer. I managed to get SQL Navigator to work with her.

    You cannot connect to the APEX Oracle using Oracle SQL Developer workspace, but you can connect with the schemas associated with the workspace and manage database objects in this schema.

    Reference: https://docs.oracle.com/cd/E55747_01/appdev.41/e55591/toc.htm

    Kind regards

    Kiran

  • Developer SQL: database Oracle 8.1.7

    Hi all

    I installed SQL Developer 1.5.3 on two computers.

    The first, I can see the 8.1.7 database (with an information message: Database version 9.X and above are supported), but I can use it.

    The second, I can't access the 8.1.7 database, I have an error message, not a message
    (message: status: failure - test failure: database support Oracle Version not taken en)
    = >
    (message: status: failure - test failure: unsupported database version)


    Could you get it someone please let me know what is not going on the second pc?

    Thanks in advance!

    The driver thin 11g included with sqldev does not connections 8i, the first computer was obviously an older heavy client installed.
    First of all, make sure you also have an Oracle client old (even if possible) installed on the computer of the 2nd and the ORACLE_HOME environment variable points to it.

    Hope that helps,
    K.

  • Unable to connect to remote oracle database!  Help, please!

    Hi all-

    I am a new user Oracle and you are allowed to access a remote Oracle database, however I have problems with the installation/configuration program! I downloaded the driver Oracle and the Instant Client (11.2.0.2.0) because I need to use Microsoft Access for the data access (the Access database is already configured to the correct Oracle database). I'm under the impression that, to do this, I need to be able to use the ODBC Administrator to get all set up. Note: Im working on Windows XP.

    I have questions:

    -I don't seem to have installed Netca (which seems to be the recommended method to configure a connection). I have manually adjusted the TNSNAMES file. ORA file so it matches the database, but I'm not sure what would be my next step.

    -When I open SqlPlus it wants a username and password, and I tried the default settings and got an error each time. I must first use SqlPlus, or establish a connection via ODBC first?

    -Also: ODBC requires a TNS Service name, and I'm not sure, where this is established; something that would give the database manager?

    I really just do not know how to configure this remote connection! I continue to run with obstacles and really want a reference "step by step" on the way to do it, if there is such a thing. Any help or additional reference material would be appreciated! I ran by the content of the forum, but have not been able to decode the jargon! Thank you very much in advance.

    Marilyn

    MsMonroe wrote:
    Hi Ed-

    I use the Oracle's ODBC driver. I think there may be a problem with the TNSnames file because I tried to add this file as a"Data Source", and he also said that a connection could not be established. What do you mean by the MS implemented? A configuration of Data Source?

    By MS implemented, I was referring to the MS ODBC for Oracle driver, against the Oracle ODBC for Oracle driver.

    The "source of data file' has nothing to do with the tnsnames file. The ODBC Manager retains its DSN definitions in one of three places. "User DSN" is stored in the HKEY_LOCAL_USER registry, the "System DSN" definitions are stored in the HKEY_LOCAL_MACHINE registry and 'FILE DSN"definitions is stored in a file... I don't remember exactly where or what it's name is as I have (when he is forced to deal with odbc) just keep things simple and use "system dsn". But these aren't all the definitions of ODBC, Oracle tnsnames file.

    The link between the ODBC DSN and the tnsnames.ora presents itself as a property of the ODBC definition. Suppose you have this for a tnsnames.ora entry:

    houston =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = vmlnx01)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SERVICE_NAME = orcl)
        )
      )
    

    Then
    -When you set up your odbc dsn, if you use the MS for Oracle driver, you must specify 'houston' as the 'server '.
    -When you set up your odbc dsn, if you use the Oracle odbc driver, you must specify "houston" as "the TNS Service name".

    >

    Im going to try to post a modified version of the content of my TNSnames.ora file (for some reason any the "content is not allowed ' by the forum), but I would like to get some comments on whether the structure of the content may be the problem.

  • Unable to connect to remote oracle database

    Hello

    I am trying to connect to the database on a remote server oracle in visual studio 2005 by using instant client for windows.

    In visual studio 2005 Server Explorer, I clicked on add a connection
    Server name: I entered the server ip:1521@my instance name
    then user and password.

    It gives me the error: ORA-12546 TNS permission denied.

    I tried searching for lsnrctl status on the remote server, it works fine, and I can connect using sqlplus.

    I also disabled the firewall to avoid the risk of blocking, however tried my windows box: telnet ip 1521, it just does not respond and seems to timeout.

    should I set in the remote server first to accept connecting from outside?

    To connect via .NET with Instant Client, you will need the version 11 ODAC, see
    http://www.Oracle.com/technology/software/tech/Windows/odpnet/utilsoft.html

    The regular customer Instant download from http://www.oracle.com/technology/software/tech/oci/instantclient/index.html
    does not contain the provider .NET.

    If telnet hangs without error message, this is of course no evidence that you can successfully connect to the database.
    It only means that you have reached the listening process, which is the best you can do with telnet.

    Yours,
    Laurenz Albe

  • Unable to connect local database using net service name

    Hello all;


    FYI: This question has been posted in high availability. Now, it has been deleted from there.


    I'm trying to connect my local database using authentication remote.

    but make a mistake. Client & server are on the same server.


    SQL > conn u1/u1@primdb

    ERROR: ORA-12545: Connect failed because target host or object does not exist


    SQL > conn / as sysdba

    Connected.


    SQL > show parameter db_name;

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    db_name chain primary


    SQL > show parameter service_name.

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    service name string mydb


    SQL > show parameter db_domain;

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    db_domain string primary.com


    SQL > show parameter global_name;

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    global_names boolean FALSE


    SQL > select * from global_name;

    GLOBAL_NAME

    --------------------------------------------------------------------------------

    PRIMARY

    [oracle@localhost admin] $ lsnrctl start

    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on January 18, 2014 16:32:08

    Copyright (c) 1991, 2005, Oracle.  All rights reserved.

    From /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: Please wait...

    TNSLSNR for Linux: Version 10.2.0.1.0 - Production

    System settings file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora

    Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log

    Error listening on: (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=oel5.linuxserver) (PORT = 1521)))

    TNS-12545: Connect failed because target host or object does not exist

    AMT-12560: TNS:protocol adapter error

    TNS-00515: Connect failed because target host or object does not exist

    Listening port could start. See the above error messages...


    -----------------------------------------------------------------------------------


    My listener.ora file content:

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = primary)

    (ORACLE_HOME = u01/app/oracle/product/10.2.0/db_1)

    (GLOBAL_DBNAME = mydb.primary.com)

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = oel5.linuxserver) (PORT = 1521))

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))

    -----------------------------------------------------------------

    My tnsnames.ora content

    primdb =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP)(HOST= oel5.linuxserver) (PORT = 1521))

    )

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = mydb)

    )

    )

    --------------------------------

    $ tnsping primdb


    AMT Ping utility for Linux: Version 10.2.0.1.0 - Production on January 18, 2014 16:40:55

    Copyright (c) 1997, 2005, Oracle.  All rights reserved.

    Use settings files:

    TNSNAMES adapter used to resolve the alias

    Try to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = oel5.linuxserver)(PORT=1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = mydb)))

    TNS-12545: Connect failed because target host or object does not exist

    Thanks in advance...


    SERVICE_NAME =? in tnsnames.ora file should MATCH what is reported by the listener EXACTLY (like one from below)

    > Service 'mydb.primary.com' has 1 instance (s).

    Instance of 'primary', State LOAN, has 1 operation for this service...

    Managers:

    "DEDICATED" set up: 0 denied: 0 status: ready

    LOCAL SERVER

    > Service 'primary.primary.com' has 1 instance (s).

    Instance of 'primary', State LOAN, has 1 operation for this service...

    Managers:

    "DEDICATED" set up: 0 denied: 0 status: ready

    LOCAL SERVER

    > Service 'primary_XPT.primary.com' has 1 instance (s).

  • Unable to connect to the oracle iStore application

    I am able to connect to istore but when istore internally tries to connect to oracle application, I get this error

    + "Application error. +

    + Illegal content input parameters, please re-enter your entry or contact the system administrator.

    Please advice.


    EBS 11.5.10.2

    Please see these documents.

    iStore errors Out with 'Illegal content of the input parameters' [1302824.1 ID]
    "Entry of content illegal parameters" Error launching iStore Configurator [1196684.1 ID]
    Unable to access iStore after patching CPU - Site: Application entry error contained illegal parameters [1166903.1 ID]
    Information Center: Troubleshooting Oracle iStore [1356839.2 ID]

    Thank you
    Hussein

Maybe you are looking for