Connect ORACLE database with sysdba privileges

Hi Guru,
I am connecting to my ORACLE database with my VB application.
I have problem with connecting to the database with SYSDBA privileges. i.e it is not connecting to the database with SYSDBA privileges.
If I connect my db from SQLPLUS. Its worked like this..
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL> select Name from v$datafile;
select Name from v$datafile
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> connect as sysdba;
Enter user-name: user_1
Enter password: ****
Connected.
SQL> select Name from v$datafile;
NAME
C:\NEW\ORADATA\ITPL\SYSTEM01.DBF
C:\NEW\ORADATA\ITPL\UNDOTBS01.DBF
C:\NEW\ORADATA\ITPL\CWMLITE01.DBF
C:\NEW\ORADATA\ITPL\DRSYS01.DBF
C:\NEW\ORADATA\ITPL\EXAMPLE01.DBF
C:\NEW\ORADATA\ITPL\INDX01.DBF
C:\NEW\ORADATA\ITPL\ODM01.DBF
C:\NEW\ORADATA\ITPL\TOOLS01.DBF
C:\NEW\ORADATA\ITPL\USERS01.DBF
C:\NEW\ORADATA\ITPL\XDB01.DBF
10 rows selected.
SQL>
Now in my VB application if I am using following string to connect the database.
m_adoCnn.ConnectionString = Provider=MSDAORA;Password=pass;User ID=user_1;DBA Privilege=SYSDBA;Data Source=ITPL
It will connect properly to the database but gives error while executing the query select Name from v$datafile;
as,
ORA-00942: table or view does not exist
Can any body help me in this or provide me proper connection string.

Hello,
I am getting below error when i kust Clic k on Test Connection in SSMS:
TITLE: Microsoft SQL Server Management Studio
The test connection to the linked server failed.
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
Cannot initialize the data source object of OLE DB provider "OraOLEDB.Oracle" for linked server "test".
OLE DB provider "OraOLEDB.Oracle" for linked server "test" returned message "ORA-12154: TNS:could not resolve the connect identifier specified". (Microsoft SQL Server, Error: 7303)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.4000&EvtSrc=MSSQLServer&EvtID=7303&LinkId=20476
BUTTONS:
OK
Can you please guide is there any other setting i need to do after install Oracle Client ?
Best Regards,
Tushar Malvi

Similar Messages

  • To connect oracle database with ms access database

    i want to connect oracle database with ms access database
    i have follow the following steps
    1. create ms access database.
    2. create system dsn.
    3. make change in listener.ora.
    4. make change in hs folder.
    5.change the tnsname.ora.
    6. lsnrctl stop and lsnrct start.
    7. create database link in oracle sql*plus.
    8.select the table of ms access
    but i have return the foloowing error.
    ORA-12154: TNS:could not resolve the connect identifier specified
    using window 2000, oracle 10g

    Have a look on ths thread, may it helps ...
    Re: copy access data into oracle with form builder 9i

  • How to connect oracle database with JAVA

    how to connect oracle database with JAVA....
    using j2sdk and Jcreator . which connector to use .. what are the code for that ..

    PLEASE .... Ask in an Oracle Java forum.
    And read the documentaiton. There is a whole document devoted to doing that. http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/toc.htm has examples.
    PLEASE ... do not ask product questions in a forum which clearly has a title saying it is devoted to assisting with download problems.

  • Connect Oracle Database with help of sql server storedprocedure

    Hii,
              Is there Any way to connect Oracle Database Using sql server storedprocedure.I want access oracle database and take some data and insert into my sql server database.so is there any way to connect in one
    stored procedure to connect oracle database and take some data and insert in to my sql server database.
    Nikunj Nandaniya

    Hello,
    I am getting below error when i kust Clic k on Test Connection in SSMS:
    TITLE: Microsoft SQL Server Management Studio
    The test connection to the linked server failed.
    ADDITIONAL INFORMATION:
    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
    Cannot initialize the data source object of OLE DB provider "OraOLEDB.Oracle" for linked server "test".
    OLE DB provider "OraOLEDB.Oracle" for linked server "test" returned message "ORA-12154: TNS:could not resolve the connect identifier specified". (Microsoft SQL Server, Error: 7303)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.4000&EvtSrc=MSSQLServer&EvtID=7303&LinkId=20476
    BUTTONS:
    OK
    Can you please guide is there any other setting i need to do after install Oracle Client ?
    Best Regards,
    Tushar Malvi

  • SQL Developer can't connect  Oracle Database as SYSDBA

    Dear all,
    Recently,I installed SQL Developer3.0 on my machine,and try to create connection to local oracle database.But one problem confused me.When i login as normal role ,it can connect DB successfully; when i login as sysdba role named sys,it always failed and show" invalid username/password".I am sure the username and password are right ,because i haved connected the oracle DB by pl/SQL with the same username and password. And i also choosed the role as sysdba. Does SQL Developer3.0 not support connect as sysdba? I would very appreciate if someone could give me a hand .Thanks in advance.

    Hi 851634,
    Do you require a password file for remote sysdba (old link)?
    Cannot login as sysdba in Oracle Enterprise Management Console
    You may be trying to log in (loopback) over the network as sysdba which needs a password file.
    -Turloch
    SQLDeveloper team

  • Connecting oracle database with sql*net via VIP on Ace

    Is there any way to get oracle Database traffic working only via the ACE Blade instead of using a firewall to do packet inspection.
    The case is we have application servers in a DMZ wich should connect via a VIP to a Oracle database on port 1521.
    Normally oracle negotiates the tcp ports wich it will use and a normal firewall will do an inspect and opens up the dynamic channel.
    However on the Ace there is still no Inspect for Sql*net.
    Everthing on routing and connection level works fine tnspings telnet to 1521 works fine. Only when using the application stack the dynamic ports needs to be used.
    In our design a firewall in between this node's is at this moment impossible.
    Any Ideas or examples how to solve this...

    ORA-27140: attach to post/wait facility failedThis is to do with filesystem permissions on $ORALCE_HOME/bin
    Login as the 'oracle' account (or the account with which oracle binaries are installed.
    goto $ORACLE_HOME/bin
    chmod 6751 account_used_to_install

  • Connecting oracle database with weblogic7.0

    Hi,
    Can some one tell me Is it necessary to have Oracle Client installed
    on machine where weblogic is installed ? to make connection with
    remote Oracle DB.
    Right now i have weblogic on my machine and oracle on remote
    machine.When i am trying to connect and getting following error :-
    QUOTE
    D:\bea\weblogic700\samples\server\stage\examples\clientclasses>java
    examples.jdb
    c.oracle.batchUpdate -user anjali -password anjali -server 172.16.1.40
    Starting Loading jDriver/Oracle .....
    Exception was thrown: System.loadLibrary(weblogicoci38) threw
    java.lang.Unsatisf
    iedLinkError: no weblogicoci38 in java.library.path
    UNQUOTE
    Any help on above will be higly appreciated.
    Looking forward for a reply from someone ?........

    It is not necessary to have client installed on same machine where
    weblogic is installed. However, you have to point to right libraries in
    path and classpath if you are using windos ops. You should also point to
    oci817_8( whatever version of database you are using) in your path.
    weblogicoci38.dll might reside there in that directory. Before even
    starting a server you should do following before starting the server.
    java utils.dbping oracle uid passwd dbname
    If you receive succssful than you are ready to go.
    Thanks,
    Mitesh
    deepak wrote:
    Hi,
    Can some one tell me Is it necessary to have Oracle Client installed
    on machine where weblogic is installed ? to make connection with
    remote Oracle DB.
    Right now i have weblogic on my machine and oracle on remote
    machine.When i am trying to connect and getting following error :-
    QUOTE
    D:\bea\weblogic700\samples\server\stage\examples\clientclasses>java
    examples.jdb
    c.oracle.batchUpdate -user anjali -password anjali -server 172.16.1.40
    Starting Loading jDriver/Oracle .....
    Exception was thrown: System.loadLibrary(weblogicoci38) threw
    java.lang.Unsatisf
    iedLinkError: no weblogicoci38 in java.library.path
    UNQUOTE
    Any help on above will be higly appreciated.
    Looking forward for a reply from someone ?........

  • How to connect oracle database with mvc3 either can use connection string or dbcontext??? please help me

    hi can anyone please help me??

    Are you using the Oracle ODBC driver? If so, which version?
    Are you writing your own VB application? What API are you using-- ADO? Can you post the code that's making a connection and the exact text of the error message?
    Justin

  • How to connect Oracle database into Visual basic 6.0

    Hi. I am using Oracle I Enterprise version 9.2.0.1, I have a problem for connecting oracle database into VB. I use a ODBC to connect oracle database with VB. By testing connection. Message tells me that "connection successfully", but I can not have a record display in VB. It tells me that can not publish a connection with ODBC. Please tell me why

    Are you using the Oracle ODBC driver? If so, which version?
    Are you writing your own VB application? What API are you using-- ADO? Can you post the code that's making a connection and the exact text of the error message?
    Justin

  • Insufficient privileges when connect to database as sysdba

    I installed a vision database along with Oracle R12 EBS. I need to connect to database as sysdba to unlock system account. but when I ran command sqlplus / as sysdba, I go this error "ORA-01031: insufficient privileges".
    I searched some answer in the internet, most answer says it requires the linux user to be in dba group. in my config.c file I have this definiation "#define SS_DBA_GRP "Oracle". So group 'Oracle" is my dba group. and I also checked my current user id (user name is Oracle too) and group , I got:
    [Oracle@linux admin]$id Oracle
    uid=500(Oracle) gid=500(Oracle) groups=500(Oracle)
    all above seems right to me. I also added authentication_services to sqlnet.ora like this : sqlnet. authentication_services=(all) . but I still got the same error. Can anyone tell me what is wrong?
    Or is there any other way to unlock system account?
    Edited by: user12100435 on Apr 15, 2013 7:53 PM

    user12100435 wrote:
    I installed a vision database along with Oracle R12 EBS. I need to connect to database as sysdba to unlock system account. but when I ran command sqlplus / as sysdba, I go this error "ORA-01031: insufficient privileges".
    I searched some answer in the internet, most answer says it requires the linux user to be in dba group. in my config.c file I have this definiation "#define SS_DBA_GRP "Oracle". So group 'Oracle" is my dba group. and I also checked my current user id (user name is Oracle too) and group , I got:
    [Oracle@linux admin]$id Oracle
    uid=500(Oracle) gid=500(Oracle) groups=500(Oracle)
    all above seems right to me. I also added authentication_services to sqlnet.ora like this : sqlnet. authentication_services=(all) . but I still got the same error. Can anyone tell me what is wrong?
    Or is there any other way to unlock system account?
    Edited by: user12100435 on Apr 15, 2013 7:53 PMyour OS user must be a member of the OS "dba" group

  • Connect to oracle database with php script

    Hello!
    How can I connect to an Oracle database with a PHP script? I read about it at www.php.net:
    "Oracle 8 functions; These functions allow you to access Oracle8 and Oracle7 databases. It uses the Oracle8 Call-Interface (OCI8). You will need the Oracle8 client libraries to use this extension."
    Where can I get these libraries from?
    Who knows more about the issue?
    Thanks a lot for your help!
    Martin
    null

    Hello
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by mheibel([email protected]):
    Hello!
    How can I connect to an Oracle database with a PHP script? I read about it at www.php.net:
    "Oracle 8 functions; These functions allow you to access Oracle8 and Oracle7 databases. It uses the Oracle8 Call-Interface (OCI8). You will need the Oracle8 client libraries to use this extension."
    Where can I get these libraries from?
    Who knows more about the issue?
    Thanks a lot for your help!
    Martin<HR></BLOCKQUOTE>
    Install and put working a sqlnet working client (install the Oracle Client option of the Oracle Database CD ROM). Than compile php with the --oci option. Than try the samples in php.net (oci function in the help).
    These are the steps... Put everything working is a little more complicated...
    FS
    null

  • Unable to connect to my Oracle Database with Microsoft's ODBC for Oracle driver

    I am unable to connect to my Oracle Database with Microsoft's ODBC for Oracle driver vers.2.573.4202.00 on a Win98 computer.
    First, I create a "Net Service Name" in order for the ODBC Driver to find the Oracle server. I then created a System DSN in the ODBC Data Source Administrator and assigned the "Net Server Name" as the server in the "Microsoft ODBC for Oracle Setup". But when I test this DSN with Oracle's provided "Oracle ODBC 32Bit Test vers.2.5.3.1.0" I get an error:
    SQLSTATE: NA000
    Native Error Code:0
    Driver Message:[Microsoft][ODBC driver for Oracle][Oracle]
    This error occurred on all three Win98 computers I have tried. It does however, seem to work fine on WinNT 4.0, and believe it or not, on the two Win95 computers I have tried.
    Does anyone have any fixes, recomendations, or advice?
    Thank you,
    Eric Edwards
    null

    Why are yu not using the Oracle ODBC driver - these can be downloaded from OTN.
    Have you set up a tnsnames.ora entry for the Oracle database you want to connect to? Does this name have a domain name added to it? Check %ORACLE_HOME%\network\admin\tnsnames.ora for the service name. If it is a name of the form :
    name.domain.subdomain
    then you should try using this full name when configuring the ODBC data source.
    null

  • How can I find exact username if I connected with sysdba privilege?

    I granted sysdba privilge to a database user. I can connect that user as sysdba. From that users session, 'show user' command showing "SYS" and also username from v$session is also showing "SYS". How can I find actual username used for connecting the database as sysdba?
    Steve Abraham

    user10247588 wrote:
    Thanks for the replay..
    But my requirement is that in our production system auditors want to give separate username for each administrators (they are not recommending sys and system).
    Normal dba privilege is not a problem. But for sysdba privilege every users are showing the user "SYS". How we can I identify which user is login to the database for a particular work if they connected as sysdba. How can I find which user did that (not just want the username "SYS", because all the administrators are identified by sys if they are connected as sysdba). If auditing is enabled how can I find the exact username. Because we are planning to give sysdba privilege to some of the administrators.
    Also, is there any option to find the username, if one user is initiate shutdown of the database?First Please close the thread and keep questioning in only one thread.
    then do not connect as sysdba

  • How Connect to oracle database with java

    i have trouble with my program
    i use oracle 8i to my database and java for interface
    this mycode :
    import java.sql.*;
    class TestThinApp {
    public static void main (String args[])
    throws ClassNotFoundException, SQLException {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    // or you can use:
    // DriverManager.registerDriver(
    // new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:thin:@dssw2k01:1521:orcl","scott","tiger");
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery(
    "select 'Hello Thin driver tester '||USER||'!' result from dual");
    while(rset.next())
    System.out.println(rset.getString(1));
    rset.close();
    stmt.close();
    conn.close();
    i have trouble , becouse i can connect my database with java (JDK)
    if any one can help me pls?
    arif

    PLEASE .... Ask in an Oracle Java forum.
    And read the documentaiton. There is a whole document devoted to doing that. http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/toc.htm has examples.
    PLEASE ... do not ask product questions in a forum which clearly has a title saying it is devoted to assisting with download problems.

  • Unable to log in with sysdba privileges

    Hi All,
    I am not able to connect with sysdba privileges through the sql*plus on the remote machine running on Windows. It gives me the following error :
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> conn sys@inftmark as sysdba
    Enter password: ******
    ERROR:
    ORA-01031: insufficient privileges
    Warning: You are no longer connected to ORACLE.
    SQL> while my initialization file has following entries:
    remote_os_authent = true
    remote_login_passwordfile = exclusiveMoreover, i am able to login with user "system" through sql*plus on windows.
    My OS : Solaris 64 bit (database running on Solaris machin)
    Database : 10.2.0.2
    Any idea, what's missing ?

    Yogesh,
    Did you try adding a new password file? In your pfile location, try this --
    1) Remove the existing password (orapw<SID>) file
    2) Generate a new password file - orapwd file=orapw<SID> password=<SYS_passwd>
    Try reconnecting thru the SQL*Plus client.
    - Ravi

Maybe you are looking for

  • Purchase Info Records ( ME11)

    Hi all, I am trying post Data for Purchase Info Records with Conditions data. I am using a standard Batch Input Method ( LSMW). Object               0060   Method               0000 Program Name         RM06IBI0 Program Type         B   Batch Input I

  • How do I connect cc2014 to Bridge and not the former cc where bridge automatically takes me now.

    I called for help to make a selection of an image on the desk top to go in to Bridge with my newly installed 2014 CC for a Mac.  The person was not able to help me but told me to call an advanced agent.  They had me go to Bridge's file and then 'open

  • Ipad 3 wifi connection drops but appears connected

    I bought the new ipad about 6/7 weeks ago and from the start ive experienced wifi issues. When im browsing the internet through safari or any app that requires wifi connectivity i keep coming accross dropouts. Safari stops loading anything and eventu

  • G5 dual 1.8ghz

    Hello, need to know if i install a processor from a G5 dual 2.0ghz or above into my dual 1.8ghz if it will work correctly. Not to compter savvy trying to get more processing power for my Pro Tools Le rig. Also, any one who knows Pro Tools is there a

  • When opening, firefox keeps checking if my extensions work in new verision, and shows me what's new page.

    As the title says, every time I start Firefox, it thinks that the update is new. Checks extensions and shows what's new page.