As SYSDBA from VB 6.0

Hi.
How can I connect me as sysdba since Visual Basic, my ConnectionString is:
ConnectionString = "Data Source=" & ServiceOraDb & ";User ID=" & pUser & ";Password=" & pass & ";"
The result is:
Error #-2147467259: PRAYS-01017: invalid username/password; logon denied Status.
Thanks.
Eyes
PD:
Public Oracon As New ADODB.Connection
Oracon.Provider = "OraOLEDB.Oracle"
Oracon.ConnectionString = "Data Source=" & ServiceOraDb & ";User ID=" & pUser & ";Password=" & pass & ";"
Oracon.Errors.Refresh
Oracon.Open
...

The following works:
Dim cnX As ADODB.Connection
Set cnX = New ADODB.Connection
cnX.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False; " & _
   "Extended Properties=""DSN=yourDSN;UID=sys;PWD=yoursyspwd as SYSDBA;DBQ=yourSID;"""
cnX.Open
Also, see note 276719.1 on Metalink.

Similar Messages

  • Login as SYSDBA from forms 6i

    Hi,
    I am using oracle 10g r2 and forms 6i(patch 25). When i tried to logon as SYS as SYSDBA from form, the following error raised "Insufficient previlege". the OS user is in oradba group and i tried creating password file, but still the problem persists. Is there any solution to solve this issue.
    Muruganandhan

    I seem to remember that maybe you need to create an oradba entry of some kind in your local windows registry under your appropriate oracle home key.
    Sorry, can't quite bring more than that to mind right now.
    Tony

  • Connecting as SYSDBA from Remote Machine

    Hello,
    I've installed Oracle8.6.1 on Linux6.2,& i've installed DBA studio on one my windows'NT machine.
    When i want to connect as SYSDBA from DBA Studio & Username/Password as system/manager it says --
    ORA-01031 Insufficient Privileges
    but i'can connect as SYSOPER & Normal.
    Do anyone know how to solve this problem???
    null

    1. use orapwd command-line utility to create a new password file.
    2. set remote_login_passwordfile = exclusive in initxxx.ora file.
    3. restart instance.
    4. use sql*plus or svrmgrl to grant sysdba right to the schemas you want to be able to logon with sysdba rights.

  • 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

  • Connect to SYSDBA from inside SQLplus? Default password?

    Ok, I could call SQLplus with the SYSDBA user as
    sqlplus / as sysdba
    but assume I am in a SQLplus session as SYSTEM user and I just want to quick switch to SYSDBA
    through a "conn" command and execute some instructions?
    How can I do this? How is the default password of SYSDBA (and SYSOPER) ?
    the following does not work:
    SQL>conn SYSDBA/sysdba
    How else can I connect?
    Peter

    user559463 wrote:
    Ok, I could call SQLplus with the SYSDBA user as
    sqlplus / as sysdba
    but assume I am in a SQLplus session as SYSTEM user and I just want to quick switch to SYSDBA
    through a "conn" command and execute some instructions?
    How can I do this? How is the default password of SYSDBA (and SYSOPER) ?
    the following does not work:
    SQL>conn SYSDBA/sysdba
    How else can I connect?
    PeterPeter,
    Well first of all, there is no user called SYSDBA, Its a role not a user. Here is the link which tells what this role contains and another SysOPER also,
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/dba.htm#sthref137
    Now the comamnd that you have given, connect sysdba/sysdba, is wrong fron start to finish as there is no user like this. One may think that the option to quickly switch can be setting the current schema to sys but that also doesn't work for SYS user,
    SQL> conn system/oracle
    Connected.
    SQL> select  * from V$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL> alter session set current_schema=scott;
    Session altered.
    SQL> select * from salgrade;
         GRADE      LOSAL      HISAL
             1        700       1200
             2       1201       1400
             3       1401       2000
             4       2001       3000
             5       3001       9999
    SQL> alter session set current_schema=sys;
    Session altered.
    SQL> select * from x$bh;
    select * from x$bh
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL>So the only option is to actually log in as Sys user.
    HTH
    Aman....

  • Cant conect "sys as sysdba" from remote

    Hi all ,
    A strange thing happening with me ..
    my database is on ip(prod1) and client is ip(Host)
    When I make connecttion from prod1 as follows :
    sqlplus sys@prod1 as sysdba
    connected ...
    Its giving me sys connection .
    But from IP (remote HOst client )
    when i fire
    sqlplus sys@prod1 as sysdba
    LOGON denied ...
    But from IP(remote Host client )when i firng
    sqlplus scott/tiger@prod1
    connected ....
    1.i m typing crrect password
    2. my remote_login_passwordfile = EXCLUSIVE

    1. Are you connecting to the right database ?
    On you remote client:
    $ORACLE_HOME/bin/tnsping prod1 and make sure that it'is resolving to the right service.
    2. Try to connect via EZCONNECT (NAMES.DIRECTORY_PATH should contain ezconnect value):
    $ORACLE_HOME/bin/sqlplus sys@hostname:port/service as sysdba
    On your server
    3. Check your $TNS_ADMIN/sqlnet.ora Make sure there is no such a line as
    tcp.validnode_checking = yes
    If so, make sure that your remote client is a part of tcp.invited_nodes

  • Help-connect as sysdba from client

    Hi All,
    I'm using oracle 8i, win2k,
    and set the parameter remote_login_passwordfile=exclusive
    SQL> select * from v$pwfile_users;
    USERNAME SYSDB SYSOP
    INTERNAL TRUE TRUE
    SYS TRUE TRUE
    But when I tried to login from client(sqplus release 8.0.6.0.0 from oracle developer 6i), and the error occured:
    SQL> connect sys/change_on_install as sysdba
    ERROR:
    ORA-01031: insufficient privileges
    How to solve the problem?
    TIA

    anyone please help.
    TIA

  • Connect as sysdba from network(client)

    when i connect to oracle database on network (client)
    as sysdba then it will gives error
    but when same command is issue on server then it will connect to oracle with no error
    :-on network machine
    SQL> CONNECT SYS/CHANGE_ON_INSTALL@SAFEDB AS SYSDBA
    ERROR:
    ORA-01031: insufficient privileges
    Warning: You are no longer connected to ORACLE.
    init.ora file
    remote_login_passwordfile EXCLUSIVE
    and
    SQL> select * from V_$PWFILE_USERS ;
    USERNAME SYSDB SYSOP
    INTERNAL TRUE TRUE
    SYS TRUE TRUE
    whats the problem??

    recreate your passwordfile in order to ensure that it is not shared and try.
    Joel P�rez

  • Oracle 11R2 remote login as sysdba fails

    Hello
    i cant connect remotely as sysdba from client to server - oracle version SQL*Plus: Release 11.2.0.2.0
    the configuration is the following
    orapwd file=orapwdTESTDB entries=30 password=mypassword force=y
    on the init.ora i have the following
    remote_login_passwordfile=EXCLUSIVE
    and while going to another server i keep getting the following error message
    sqlplus sys/mypassword@testdb as sysdba
    SQL*Plus: Release 11.2.0.2.0 Production
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    ERROR:
    ORA-01031: insufficient privileges
    What else im missing? i had this configuration in oracle 10G and worked fine
    thanks

    Did you ever get this to work? I'm having the same problem. If I remote to the server and log on directly as sys, I can do fine. If I try from my PC, I get the insuff priv error. I can connect to other databases fine from my PC, but not this particular one.
    thanks,
    Carl

  • ODBC login as sysdba

    What is the syntax? From a client desktop I can login to SQL Plus and Enterprise Manager 10g, but not via ODBC (Test Connection) using the same login.
    SQL PLUS:
    Start/Programs/Oracle - OraDb10g_home3/Application Development/SQL Plus
    presents a login box. I enter info as follows, and login is successful
    User Name: sys
    Password: <mysyspwd>
    Host String: ORCL AS SYSDBA
    web site to Enterprise Manager also presents a login box
    User Name: sys
    Password: <mysyspwd>
    Connect As <I select SYSDBA from the dropdown list.>
    but, ODBC, System DSN tab, Add
    Data Source Name: <whatever>
    TNS Service Name: ORCL -- or ORCL AS SYSDBA
    User ID: sys
    Click Test Connection
    Password: <mysyspwd>
    When the TNS Service name is filled in with only the TNSname,
    I get ORA-28009 connection to sys should be as sysdba or sysoper
    When the TNS Service name is filled in with TNSname AS SYSDBA,
    the error is ORA-12154 TNS:couldnot resolve the connect identifier specified.
    When TNS Service name is ORCL and User Id is SYS AS SYSDBA,
    the error is ORA-01017:invalid username/password;login denied
    The dirver is Oracle in OraDB10g_home3 (10.01.00.02 SQORA32.DLL 2/10/2004)
    And I can login via ODBC using
    TNS Service Name: ORCL
    User ID: scott
    Click Test Connection button
    Password: tiger
    I get Connection successful
    Thank you, Nancy
    Edited by: user5699535 on Aug 16, 2010 7:29 AM

    1 Both are dangerous, but using ODBC you can store the password of the account in the registry or odbc.ini. ODBC connections are usually being distributed to the end-users who don't have the faintest idea what they are doing. However, if they do know how to write a passthrough query, they can do anything.
    2 Your database is open to everyone. You are exposing sensitive data. It is in hand of people who might know some SQL. Who might write incorrect queries. Who might doing things which can not be traced, as everything was executed by SYS.
    The issue is most developers of commercial software vendors and major consultancies do not care about security at all. I was often instructed to grant the DBA role to the application owner, because otherwise 'the application doesn't work'. There are far more incompetent developers out there than you and I can imagine.
    Connecting to the database as SYS, indicates a lack of concern for security, and being too lazy to find out what privileges are really required.
    I'm not aware of any reason why the use of SYS should be allowed in any client tool other than sqlplus or maybe sqldeveloper.
    Sybrand Bakker
    Senior Oracle DBA

  • Sql conn anything / anything as sysdba i am able connect to my database

    Hi
    i facing a new problem in my Database 10g R1.
    i am able to connect as sysdba with
    sql> conn <anything>/<anything> as sysdba
    from local or if i connect from any linux machine thr ssh <oracle_owner_name>@ip ...
    if i show user command..
    SQL> show user;
    USER is "SYS"
    for more details check the following...
    [oracle@dbserver ~]$ !sq
    sqlplus /nolog
    SQL*Plus: Release 10.1.0.3.0 - Production on Tue Jan 8 17:13:34 2008
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> conn sys/admin123 as sysdba
    Connected.
    SQL> conn sys/rpcadmin123 as sysdba
    Connected.
    SQL> conn sys/manager as sysdba
    Connected.
    SQL> conn sys/123456 as sysdba
    Connected.
    SQL> conn sys/dhana as sysdba
    Connected.
    SQL> conn dasjdaas/djahdjkada89723 as sysdba
    Connected.
    SQL> alter user sys identified by admin123;
    User altered.
    SQL> conn sys/rpcadmin123 as sysdba
    Connected.
    SQL> shut immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> conn sys/xxx as sysdba
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 369098752 bytes
    Fixed Size 779176 bytes
    Variable Size 116137048 bytes
    Database Buffers 251658240 bytes
    Redo Buffers 524288 bytes
    Database mounted.
    Database opened.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options

    i think you are fully getting ,what's my problem...I think you mean that I am not :)
    conn xyzklaspdsba/dakdoa as sysdba xyzklaspdsba would be a database user
    Anyway if you scroll through the document, it states that the only requirement using operating system authentication to connect is;
    CONNECT / AS SYSDBA or AS SYSOPER
    From remote database connection
    CONNECT /@net_service_name AS SYSDBA or AS SYSOPER
    Simply said it does not consider the database username or password as O/S user belongs to OSDBA or OSOPER groups.
    Hope it is clear.
    Adith

  • Error when log into sql developer as sysdba

    Hi iam able to loging in oracle 11g from command prompt as sysdba,
    the same when iam tried from sql developer with same credentials as sysdba its showing error invalid user or password.
    Could any one help me out o n ths pls?

    Did you select role SYSDBA from the drop-down box?
    Provide all details you entered in the dialog.
    Hope that helps,
    K.

  • Importing data from a data-backup file

    Hi,
    my application runs external process that imports (should import) data from a backup file created using the exp command. Export file is created by gDBUser from global database (GDB) and should be imported by lDBUser to local database (LDB).
    process1.StartInfo.FileName = "imp.exe";
    process1.StartInfo.Arguments = String.Format(" userid=\\\"{0}/{1}@{2} as SYSDBA\\\" fromuser={3} touser={4} tables=({5})", dbUserName, dbUserPass, serviceName, fromDBUser, toDBUser, tableNames);
    process1.StartInfo.UseShellExecute = false;
    process1.Start();
    Everything works fine as long as the user running my application is member of the DBA system (Windows) group. Unfortunately, in most cases the user does not belong to that group and import fails with the following error message:
    IMP-00058: ORACLE error 1031 encountered
    ORA-01031: insufficient privilegesUsername:
    IMP-00000: Import terminated unsuccessfully
    Users should not be members of the DBA group in order not to be able to modify the data otherways then by using the app. They don't even know the dbUserName nor dbUserPass.
    Is there a way to be able to perform such import without running it as member of DBA group?
    I'll appreciate your help.
    Best regards
    Rob

    Hi Mark,
    No, it isn't necessary to connect as sysdba.
    In the meantime I found the solution.
    My dbUser had no CREATE TABLE privilege. As soon as I granted it and removed "AS SYSDBA" from the userid parameter everything started to work fine.
    Thanks
    Rob

  • Database Login - Can not login as sysdba

    I have a userid for a database on a separate server. I can login as sysdba on the server with the database and from the OEM server. I can not login as sysdba from OEM. Is there a change that needs to be made to the password file or does there need to be password file on the OEM repository server?

    What do you mean with OEM server here? Centralized gridcontrol server? That's a different concept, you connect to a specific administration user (often SYSMAN), 'sysdba' is not applicable here. Otherwise a server, which hosts a standalone DBConsole is not different from any other database server.
    Werner

  • Unable to connect 11g database as a sysdba using toad 10

    Please i need an urgent help.
    First i will let you know about my environment.
    OS : HP-UX 11.3
    Database : 11g R1
    Toad : 10.6
    I have set the password file with more than 1 entries for sysdba. The below message will shows the entries of user entry in password file.
    SQL> select username,sysdba from v$pwfile_users;
    USERNAME SYSDB
    SYS TRUE
    TPAUSER TRUE
    When i try to connect to the database 11g using the user as sysdba i am getting error ora- 01031 : Insufficient privileges.
    Please help me out.
    Thanks in advance

    / as sysdba means, omit username and passowrd and use OS authentication. For OS authentication to work, the account must be a member of the OSDBA group, which is DBA on a Unix server, or ORA_DBA under Windows. Remote SQL*Net logins cannot use OS authentication, but can use the password file.
    The password stored in your password file may not be the same used for the Oracle Admin account. Please see the following link how to setup the password file:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/dba007.htm

Maybe you are looking for

  • The usual ClassNotFound for stubs, but I cant remember

    Hi guys. I have a problem with my rmi app. First of all I have the server stuff in server package, the worker stuff in worker package, some essential code in source package and thats it. So the directory structure is path/server, path/worker, path/so

  • SD Data Load (Deliveries Too High In Number)

    Hi All, I am loading data for application component 11, 12, & 13. Filling up of set up table for application component 12 is taking very long time. So i am thinking of taking alternative path. Say; The company has following Sales Organization -- 1100

  • IPod Touch 4th Gen all have diff. fps. Need to render all in FCP?!

    I have an iPod Touch 4th Gen and am trying to edit the videos taken on it on Final Cut Pro 6. But, I noticed all of the videos have different fps (frames per second). Do I literally have to render out all of them so I can view it? Or is there in opti

  • There is something running in the background and I don't know what it is.

    This is what I see when I click on "Window" abhtml_background_{776244c8-ba5f-4ee8-8b66-e4ca025f546a} except all of the letters are uppercase. It's a window for something I can't get rid of. It is only there when I run Firefox and restarting and empty

  • Default speaker volume

    I know this is quite weird question... but what is the default value of the internal speaker volume? I have reset nvram but it didn't fix internal speaker volume of the "Mac OS", not a startup chime(I could fix speaker volume of startup chime by rese