How to Access SQL*Plus with DBA account

Hi All,
I want to know how can I access and query database through DBA account
when I enter sys in Login filed and password in password filed it give me error
ORA- 28009:Connection as sys should be as sysdba or sysoper
when I enter sysdba in Login filed and password in password filed it give me error
ORA- 01017:Invalid username/password; Login denied
Please help me in this

OR
-- SYSTEM is a DBA account
sqlplus SYSTEM/password
--SUPER DBA with OSPER and SYSDBA role
You need the ORA_DBA group membership for using /
sqlplus  / as sysdba
or
sqlplus "/ as sysdba"
or
sqlplus "sys as sysdba"
then enter password. HTH
SS

Similar Messages

  • HT1212 My iPhone was stollen and 3 months later the police return it back to me. But now it is locked to other iCloud account. How can I register it with my account?

    My iPhone was stollen and 3 months later the police return it back to me.
    But now it is locked to other iCloud account.
    How can I register it with my account?
    The device is still registered in My Support Profile->My Products and untit 29.11.2014 I was able to see it in "Find My iPhone" as offline.

    Was the link I provided of no use.

  • How to find sql statement with Unix process pid

    Hi
    how to find sql statement with Unix process pid
    is there any view to find that.
    please if so let me know
    Thanks in advance

    this is how I am doing this:
    oracle 7352340 7459066 0 07:47:10 - 0:00 oracleJDERED (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
    oracle 7459066 5386396 2 07:47:10 pts/1 0:01 sqlplus
    select sid,serial# from v$session where process='7459066';
    SID SERIAL#
    2178 6067
    select sql_text
    from
    v$sqlarea a,
    v$session b
    where a.hash_value = b.sql_hash_value
    and b.sid = 2178
    ;

  • How to write sql query with many parameter in ireport

    hai,
    i'm a new user in ireport.how to write sql query with many parameters in ireport's report query?i already know to create a parameter like(select * from payment where entity=$P{entity}.
    but i don't know to create query if more than 1 parameter.i also have parameter such as
    $P{entity},$P{id},$P{ic}.please help me for this.
    thanks

    You are in the wrong place. The ireport support forum may be found here
    http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&func=showcat&catid=9

  • Issues trying to Access SQL Plus after downloading 8i Trial Version

    After successfully downloading Oracle 8i Personal Edition, I am trying to access SQL Plus, it requires to enter a User Name, Password and Host String. I enter my OTN Password ID and I am refused access. Does anyone have any ideas why?

    harry,
    i am assuming you are using 6.0.8.8 of reports6i, which is base-release. there have been problems withthe OCA in this version. by using the latest patch you should solve this problem. for further details, please contact oracle support services.
    regards,
    the oracle reports team

  • SQL PLUS with GUI

    I am trying to find out where i can download the older verision of SQL PLUS with GUI interface.
    My current SQL PLUS that came with oracle 11g release one is just a console.
    thanks

    Pl see if MOS Doc 207303.1 (Client / Server / Interoperability Support Between Different Oracle Versions0 can help
    HTH
    Srini

  • How can I cancel an order made as apple guest? or how can i associate it with an account?

    how can I cancel an order made as apple guest? or how can i associate it with an account?

    You should still have an order number
    call 1-800-MY-APPLE

  • How to install SQL*Plus help facilities and demos.

    Hi, everyone
    It appears error message say "failure to login" during SQL*Plus
    part of the Oracle8 full installation. I knew that system want
    to install SQL*Plus help and demos through logining one of
    dba account(maybe system user account). However, due to
    password's reason, can not log in SQL*Plus, so installer can't
    execute named pupbld.sql script, result in SQL*Plus help and
    demos can not be installed.
    Now, I am intend to install these stuff lonely.
    Could anyone help me? thank a lot.
    William
    null

    Hi,
    The pupbld.sql isn't the correct script to create the help
    facility, it just creates product and user profile tables.
    The help script is at $ORACLE_HOME/sqlplus/admin/help (run as
    system)
    cd $ORACLE_HOME/sqlplus/admin/help
    sqlplus system/<password> @helptbl
    sqlldr system/<password> control=plushelp.ctl
    sqlldr system/<password> control=plshelp.ctl
    sqlldr system/<password> control=sqlhelp.ctl
    sqlplus system/<password> @helpindx
    I think it is necessary to run the pupbld.sql script, without
    this script everyone who logins in oracle with sqlplus will see
    an error message, but... Run the script again:
    $ORACLE_HOME/sqlplus/admin/pupbld.sql
    Best regards,
    Ari
    William (guest) wrote:
    : Hi, everyone
    : It appears error message say "failure to login" during SQL*Plus
    : part of the Oracle8 full installation. I knew that system want
    : to install SQL*Plus help and demos through logining one of
    : dba account(maybe system user account). However, due to
    : password's reason, can not log in SQL*Plus, so installer can't
    : execute named pupbld.sql script, result in SQL*Plus help and
    : demos can not be installed.
    : Now, I am intend to install these stuff lonely.
    : Could anyone help me? thank a lot.
    : William
    null

  • How to block Sql Plus sessions in Oracle 10g

    Hi,
    I want to block all sql plus sessions in oracle 10g, as we have a application and we need each and every one to use this application not the sql plus session.
    Kindly update us as soon as possible. and also thanks in advanced.

    Understand the concept Karl, but a layered defense seldom works in the IP world. If I manage to get through the firewall, then how can you prevent me access, at IP level, at any other ISO stack layer? If you manage to get through, then your firewall policies could just be too weak :) at least you must have some kind of an IDS infrastructure in place..
    what I mean is, you can have infinite number of threats.. and this will be part of your Risk Analysis. Determining all possible threats to the assets, what are being protected and their associated value, and predicting the rate of occurrence.... with all of these you could probably come up with contingency plans and incident response.. And most of all, you should not ignore the fact that people are creative, ingenious, and curious, and they'll prove this to you by testing your security implementations. So you'll have to periodically evaluate your security.. that's why there are audits.. Also, you must balance Security, Performance, Usability, and your Budget.
    Yes, you can argue that if the entire firewall goes down (thus no IP defense), then something like DBV (or even denying IPs in sqlnet) can provide some defense. But is that not then a case of too little too late? It's better too little too late, than no protection at all... Imagine if there's no DBV, or if you have not implemented the concept of "Least Privilege"? or if the backups and exports are not encrypted? That would be more devastating.. that's the importance of database security options and features in providing "defense in depth"
    I question just what purpose and how effective IP packet security is at higher layers. It can never substitute doing this instead at firewall level. Well, it's not all about network security. All facets must be considered and the inter-relationships should be understand. Like the core information security and access management, physical and personnel security, training them, etc... And all of these are equally important in providing a secure ecosystem
    As for security that relies on the client to pass secure data (like executable name or o/s user name)... all this can easily be spoofed. Even if the app and Oracle driver are somehow digitally signed and these signatures can be verified on the server side, we only need to look at Vista to see how secure this really would be. Microsoft attempted to encrypt every single h/w and s/w layer from the physical DVD track to the pixel on the monitor.. and this was defeated. And this was done as o/s kernel level. It is less complex to hack at driver level and even trivial to do it at application level.Security is about risk management. Blocking SQL*Plus does not negate the risk of SQL from the wild being run on a production server. For example, the client is a VB client using ODBC. It is easy to create a proxy that accepts the ODBC connection from the VB client and proxy the OCI packets to the real Oracle server. Now you have a man-in-the-middle than can inspect every single SQL call made to Oracle, and inject any PL/SQL or SQL code it wants.
    Security is far beyond writing a login trigger to deny SQL*Plus sessions and calling that a defense. >
    Yes I agree with you. That's why there are independent organizations and regulating bodies that provides security best practices, to give us a headstart on comming up of strong security policies.
    And one of my favorites is the one provided by IASE (sponsored by Defense Information Systems Agency) where there's lot of content regarding hardening and policies
    http://iase.disa.mil/stigs/stig/index.html
    http://iase.disa.mil/stigs/checklist/index.html
    http://iase.disa.mil/stigs/SRR/index.html
    - Karl Arao
    http://karlarao.wordpress.com

  • Problem accessing SQL Developer with user sys

    Hi Experts;
    I'm working with Oracle 10G, in Solaris 10, The DB apparently is working properly, but I can not access the DB thru SQL Developer. When I try to acccess with user sys, and I enter de password, in oracle role I select sysdba, when I choose connect I get this error message:
    ORA-01017: invalid username/password; logon denied
    However, I can connect with other user without any problem.
    I was connecting directly in the server, with sqlplus /as sysdba and I changed the password for user sys, but still the problem continues.
    What is wrong with this. I got the same problem if try to connect thru OEM.
    Thanks and regards
    Al
    Edited by: user12048358 on Jul 8, 2011 12:02 PM

    Hi Buntoro;
    Thank you for answer.
    First, I'm completely sure I'm using the correct password, to be sure I changed the password thru sqlplus.
    I'm using tns connection, btw, with the same connection, I can connect, but with other user.
    I was trying again, however, with the same results previous explained.
    But also I have the same problen when I tried to connect to OEM, and I was trying to stop the dbconsole, and found this:
    export ORACLE_SID=YAWIDBLAB
    emctl status dbconsole
    OC4J Configuration issue. /opt/oracle/102/oc4j/j2ee/OC4J_DBConsole_yawi-db-lab01_YAWIBLAB not found.
    export ORACLE_SID=YAWIDBLA
    emctl status dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    http://yawi-db-lab01:1158/em/console/aboutApplication
    Oracle Enterprise Manager 10g is running.
    Logs are generated in directory /opt/oracle/102/yawi-db-lab01_YAWIDBLA/sysman/log
    If I type export ORACLE_SID=YAWIDBLA and then sqlplus /nolog
    SQL> connect /as sysdba
    Connected to an idle instance.
    But, when I connect settiong the SID in this way:
    export ORACLE_SID=YAWIDBLAB
    sqlplus /nolog
    SQL*Plus: Release 10.2.0.4.0 - Production on Sat Jul 9 23:03:15 2011
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    SQL> connect /as sysdba
    Connected.
    SQL>
    Apparently, there is problem with the tnsnames. When I see the tnsnames in SQL DEVELOPER I see this: YAWIDBLA
    So, here is the tnsname, in order you have a better idea, what I have.
    YAWIDBLA =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = yawi-db-lab01)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = YAWIDBLAB)
    Is the first time I see this kind of problem.
    Have an idea of what's happening;
    Best Regards;
    Al

  • SQL*Plus with Oracle 10g Express Edition

    How Can I do to log in using SQL*Plus into Oracle 10g?
    My Schema is: Banco.Global
    My Password is: 111111
    I need to write SET SERVEROUTPUT ON to get answer?
    I opened the Prompt, but i don't know to log in.
    Thanks and my english is not as well as you.

    If i write:
    SQL>connect "Banco.Global"/111111
    a error message is raised: Invalid username/password; logon denied
    but if I log in into Home Page with the same Username and Password, I get to log in.
    There is difference to connect SQL*Plus and the connect with Home Page the Oracle?
    I need to connect with SQL*Plus, because i need to make a test.

  • Configure SQL*plus with InstantClient to use TNSNAMES

    I got following configuration:
    Database - 10.2.0.4 EE x64 running on separate server, e.g. 192.168.1.1 with SID test
    Client - clean CentOS 6.3 x86 installation.
    I've downloaded oracle-instantclient-basic-10.2.0.4-1.i386.rpm and oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm and made rpm -i on them to install.
    Made following exports:
    LD_LIBRARY_PATH="/usr/lib/oracle/10.2.0.4/client/lib"
    TNS_ADMIN="/usr/lib/oracle/10.2.0.4/client/admin"
    /usr/lib/oracle/10.2.0.4/client
    ├── admin
    │   ├── sqlnet.ora
    │   └── tnsnames.ora
    ├── bin
    │   ├── genezi
    │   └── sqlplus
    └── lib
        ├── glogin.sql
        ├── libclntsh.so.10.1
        ├── libnnz10.so
        ├── libocci.so.10.1
        ├── libociei.so
        ├── libocijdbc10.so
        ├── libsqlplusic.so
        ├── libsqlplus.so
        └── ojdbc14.jar
    cat /usr/lib/oracle/10.2.0.4/client/admin/sqlnet.ora
    TRACE_LEVEL_CLIENT = OFF
    names.directory_path = (TNSNAMES, HOSTNAME)
    names.default_domain = world
    name.default_zone = world
    cat /usr/lib/oracle/10.2.0.4/client/admin/tnsnames.ora
    test.world=
       (DESCRIPTION =
         (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.1)(PORT = 1521))
         (CONNECT_DATA = (SID = test))
    sqlplus access/[email protected]:1521/test
    SQL*Plus: Release 10.2.0.4.0 - Production on Tue Aug 28 14:45:18 2012
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    sqlplus access/access@test
    SQL*Plus: Release 10.2.0.4.0 - Production on Tue Aug 28 14:45:18 2012
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specifiedAdding .world change nothing.
    Using direct connect string works fine:
    sqlplus access/access@"(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.1)(PORT = 1521))(CONNECT_DATA = (SID = test)))"
    SQL*Plus: Release 10.2.0.4.0 - Production on Tue Aug 28 14:45:18 2012
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit ProductionWhere am I wrong and is it possible to make it work with TNS?
    Thanks in advance.

    insanepi wrote:
    sqlplus access/[email protected]:1521/test
    SQL*Plus: Release 10.2.0.4.0 - Production on Tue Aug 28 14:45:18 2012
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Add EZ_CONNECT to your names.directory_path for this.
    Also you may put .tnsnames.ora file into your $HOME path.
    And tracing is a good starting point for troubleshooting.

  • How to access Oracle 10g with COBOL

    Hi there,
    I didn't find anywhere better to post this, so I'm sorry if this is the wrong place.
    I'm having major problems trying to find out how to access an Oracle 10g database with COBOL because I have no directions. I've never programmed anything that access a database before, and my first time must be in COBOL (wich is a language I started learning yesterday)
    My teacher (who is not a nice person) gave us no directions at all, and when we ask her for it she is rude
    "Do you know something called library? Or maybe, Google?"
    So I am here, desparate, asking for anyone's help, for any diirections.. like
    -How to access?
    -Wich COBOL compiler to use? (free)
    -Do I access the database with commands in COBOL? wich commands?
    -Any tutorial around the web about this?
    I have to deliver the full project in a month.. lol
    Oh well...
    thanks in advance!
    Oscar

    I do understand if she want us to be resourceful, but yes, she was tottaly irresponsible with us... but what is done is done.
    Thanks alot for the information APC
    I gave a quick look on the documentation you gave me and it is perfect, I now know how to connect to the database and somewaht use the commands.
    But I looked for 2 more things and didn't find it, I'm sorry if I missed there
    1) Do I need to instal anything? Something like a Pro*COBOL installer? I'm using Fujitso COBOL compiler, do I need to use other?
    2) I looked at the commands on how to connect to the database but I don't understand something (again, sorry if I missed something)
    LOGON.
    MOVE "SCOTT" TO USERNAME-ARR.
    MOVE 5 TO USERNAME-LEN.
    MOVE "TIGER" TO PASSWD-ARR.
    MOVE 5 TO PASSWD-LEN.
    EXEC SQL
    CONNECT :USERNAME IDENTIFIED BY :PASSWD
    END-EXEC.
    DISPLAY " ".
    DISPLAY "CONNECTED TO ORACLE AS USER: ", USERNAME-ARR.
    How does the CONNECT command know where to connect? I mean.. where do I put the adress of my Oracle Database?
    That's all I could think about with this quick look, when I start implementing I will read the guide with all my attention.
    Thanks again for the help
    Oscar

  • Why Start SQL*Plus with /nolog

    What is the difference between starting SQL*Plus as in
    sqlplus sys as sysdba
    versus
    sqlplus /nolog
    connect sys as sysdba
    I can imagine that the second method prevents some log file from being written but sometimes logs are useful. Is there more to it than that?
    Thanks,
    Gregory

    It's really interesting to see how a question like this gets answered. Some of what you've been told is true, some not, and most of it is a red herring...
    First, using /nolog (as has been correctly stated) has nothing to do with logging. It means "start sqlplus but don't log on to any database just yet"
    Second, its user or lack of has nothing to do with connecting as sys, as sysdba, or any other special connection. It means, simply and only, "start sqlplus but don't log on to any database just yet"
    It has nothing to do with the ability to run a sql script.
    It has nothing to do with your ability to supply a password.
    One reason to use it in a *nix environment is to be able to hide the userid and/or password from someone querying processes.  As was hinted at, if someone performs a 'ps -ef', they will see the full command line that started the processes.  So, if you start with
    $>sqlplus system/manager
    a ps -f will show the username and password.
    If you start with
    $>sqlplus system
    you will be prompted for password and ps -ef will show the username, because it was on the command line
    If you start with
    $>sqlplus /nolog
    Then supply the username and pswd manually (or in a script), then ps -ef will only show that sqlplus is running, but will not reveal anything about the credentials used.

  • CANNOT CONNECT SQL*PLUS WITH ORA-12547

    제품 : ORACLE SERVER
    작성날짜 : 2004-05-20
    발생)
    oracle 디렉토리를 변경하거나, 오라클 화일의 위치 또는 permission 을
    변경한 다음부터, 오라클을 사용하는 일반 OS account 들이 sql*plus
    에 접속할 때 다음과 같은 에러가 발생하면서 접속할 수 없는 현상입니다.
    sqlplus scott/tiger
    ld.so.1: <product name>:fatal:libsunmath.so.1: can't open file: errno=2
    ld.so.1: <product name>:fatal:libsunmath.so.1: can't open file: errno=2
    ld.so.1: <product name>:fatal:libsunmath.so.1: can't open file: errno=2
    ERROR: ORA-12547: TNS:lost contact
    make -f sqlplus.mk sqlplus 해도 에러 없이 생성된 sqlplus 가
    위와 같은 에러를 보내면서 접속되지 않습니다.
    해결 방안)
    이 문제는 Solaris 의 Oracle 7.3.3 에서 발생합니다. listener 를 통해
    접속한 process 는 LD_LIBRARY_PATH 가 설정되어 있지 않습니다.
    따라서, listener.ora 를 다음과 같이 setting 합니다.
    (SID_DESC=(SID_NAME=FNDFS)
    (ORACLE_HOME=/appltop/fnd/6.1.1)
    (PROGRAM=FNDFS)
    (ENVS='LD_LIBRARY_PATH=/usr/dt/lib:/usr/openwin/lib:$
    ORACLE_HOME/lib'))
    listener 를 거치지 않는 사용자들은 다음과 같이 작업하십시오
    즉, libsunmath.so.1 은 7.3.3 부터 $ORACLE_HOME/lib 에 포함되어 있는
    library 입니다. 따라서, LD_LIBRARY_PATH 에 $ORACLE_HOME/lib 가 포함되어
    있는지 확인하고, 만약 포함되어 있다면, 이 화일을 /usr/bin 으로 copy 하고
    chmod 755, chown/chgrp를 bin 하면 됩니다.
    "$ORACLE_HOME/lib" 에 있는 "libsunmath.so.1" 을 copy 하고 permission 을
    변경하는 절차는 다음과 같습니다.
    1. % cd /u01/app/oracle/product/7.3.3/lib/
    2. % cp libsunmath.so.1 /usr/lib
    3. % cd /usr/lib
    4. % chown bin libsunmath.so.1
    5. % chgrp bin libsunmath.so.1
    원인)
    oracle 을 설치한 후나 oracle product 에 변경이 일어난 후에 root.sh 를
    수행하여 화일들의 owner, group 등을 변경하는 작업을 합니다.
    이 작업 도중, library 에 setting 해두었던 link 가 끊어졌을 때에
    위와 같은 에러가 발생합니다.

    Brian Tkatch wrote:
    SQL*Plus inside the VM can connect to XE, but not to either remote server. It just hangs for a while and finally returns: ORA-12545: Connect failed because target host or object does not exist
    Sounds like hostname resolution failed.
    A hostname needs to be resolved into an IP address. So if you are using a hostname in the TNS connection string, you need to make sure that it can be resolved into an IP. Using the ping <hostname> command is an easy way to determine if the hostname is resolved.
    Some listeners (such as remote and RAC listeners), accepts a client connection, and in response redirect the client to a different hostname (and even port). For example, a remote listener can service 10 instances (each with a different service name). The client connects, requesting servcice5. The listener redirects the client to hostname ora-server5 on port 1521. The client now attempts to connect to ora-server5, by resolving that hostname into an IP and then initiating the connect call.
    So the listener can redirect the client to a new hostname - and the client needs to be able to resolve that hostname. The error you get therefore does not always relate to the initial listener connection. It can also result when the client driver follows the listener's redirect and attempt a new connection to a new host.

Maybe you are looking for