I want to shutdown database with user "TEST"

Hi All,
I am using Oracle 11.1.0.6 / Windows XP.
I want to shutdown database with the "TEST" user i have created in the database.
Which role/Privilages i need to assign to "TEST" user for shutdown the database with this user.
Thanks in Advance.
Anil

user644339 wrote:
Hi Anand/Shailesh,
I have granted both the roles to test user,But still i m unable to shutdown the database with test user.I have granted DBA role also to test user. plz find the details below:
SQL> select * from v$pwfile_users;
USERNAME SYSDB SYSOP SYSAS
SYS TRUE TRUE FALSE
TEST TRUE TRUE FALSE
SQL> conn test/test
Connected.
SQL> shutdown immediate
ORA-01031: insufficient privileges
SQL>Anil,
Its not just that you have got the role of Sysdba ( or your user TEST) and you can shut down the db with that user. This priv is ONLY with the Sys user so what you need to do is to connect as Sys user ONLY to do this operation. You need to do some thing like this,
connect test/test as sysdbaWhich in real means, you are NOT connecting as TEST user but as Sys user only who can shut down the db. Normal users and even uses with DBA role are not authorized to shut down the db,makes sense , you don't want your users to shut down the db, even though they are dbas.
HTH
Aman....

Similar Messages

  • INS0009: Unable to connect to the database with user SYS

    Hi all,
    I'm trying to create an OWB repository with OWB repository assistant (10.2.0.2.) on a 10.2.0.1. database (windows XP platform). I get the following error every time I fill in the connect info for the SYS user:
    INS0009: Unable to connect to the database with user SYS. java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    I can connect to the database (sqlplus sys/<password>@orcl as sysdba) and the OS user is in the ora_dba group. Also checked the database parameters remote_login_passwordfile (= EXCLUSIVE) and O7_DICTIONARY_ACCESSIBILITY=TRUE.
    Does anyone know what the problem is? Any help is appreciated.
    Regards,
    Quinten

    Ok I found the problem myself, I used the wrong sys password :-(. I thought the password I used to logon in sqlplus was right (sqlplus sys/<password>@orcl as sysdba) but the password doesn't matter when you logon as sysdba! So I altered the password for the user sys and now I can continue the steps of the repository assistant.
    Quinten

  • Script to find the list of Queries currently running in database with User Login Name and Host Name.

    Hai,
    How to find the list of queries currently running in the Database with User Login Information.
    Since my database application is running slow, to find the slow queries.

    Try the below query
    SELECT r.start_time [Start Time],r.session_id [SPID],
    DB_NAME(database_id) [Database],
    s.host_name,
    s.program_name,
    s.login_name,
    SUBSTRING(t.text,(r.statement_start_offset/2)+1,
    CASE WHEN statement_end_offset=-1 OR statement_end_offset=0
    THEN (DATALENGTH(t.Text)-r.statement_start_offset/2)+1
    ELSE (r.statement_end_offset-r.statement_start_offset)/2+1
    END) [Executing SQL],
    r.status,command,wait_type,wait_time,wait_resource,
    last_wait_type
    FROM sys.dm_exec_requests r
    OUTER APPLY sys.dm_exec_sql_text(sql_handle) t
    inner join sys.dm_exec_sessions s
    on s.session_id = r.session_id
    WHERE r.session_id !=@@SPID -- don't show this query
    AND r.session_id > 50 -- don't show system queries
    ORDER BY r.start_time
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Could not signon to the database with user VP1!!

    Hello All,
    people tools : 8.53 - windows 7, my local one
    peoplesoft application: HRMS 9.2 version -- oracle linux OS
    oracle 11g database -- oracle  linux OS
    when i start the app server domain for HSMS application using psadmin, its not starting
    when i look for appserv logs, i got this error
    Password has expired
    could not sign on to database with user vp1
    i can able to login into the database, and able to connect to SYSADM schema also
    so i tried manually updated the password operpswd in sysadm.psoprdefn table as VP1 and updated,. committed.
    and tried to connect to database using datamover to encrypt the password in my local machine, it says tns could not find the id specified
    but i can able to ping to linux database , tnsping is working, and i can able to establish a database session from my local one to linux server.
    Still unable to start the HRMS application domain in linux server
    kindly help.
    Regards.

    oops sorry Nicolas. ITs my typo mistake.
    Its peoplesoft finance application. not the hrms. and user id and password is VP1/VP1 was set during implementation.
    After implementation , we have not used the application for some months. I think that may be the reason for password expire.
    the following are the error:
    File: sql access ManagerSQL error . stmt #: 2 Error Position: 0 Return:28001 - ORA 28001: the password has expired
    SQL Access Manager: File: SQL Access ManagerSQL error. stmt #: 2 Error Position: 0 Return: 2 ORA 28001: the password has expired
    Database Options: override_connection_reset:0
    Database Signon: Could not sign on to database PSFNDEMO with user VP1
    Server failed to start
    End boot attempt on domain PSFNDEMO
    i also performed the steps pointed by Hakan in your blog
    On The Peoplesoft Road: Peoplesoft passwords
    Still no luck.
    kindly suggest
    Thanks.

  • I want to access the database with user name and password without con. info/udl

    hi to all,
    im doing project related with database... normally i'll connect ***.udl file to open database.vi.
    now what is my question is I want to open the database with the user name with password.... y i need this because once i run the program the program should ask username and password to open database for write/read operation. if its wrong user name and password means program should be denied... 
    can any tell how to access the database toolkit with the username with password....
    im using labview 7.0... 
    i think my question is clear....waiting for reply thank you in advance...
    pls see this attachment.....
    Regards,
    N. Srinivasan
    Attachments:
    access.vi ‏37 KB

    i have already read that link in the discussion forum...but im still have some confussion in... i attached file is so like to give user name and password..?
    and one more things can tell wat to do in ODBC and MDB and in UDL for password lock.. each time i run the promgram it should ask password to acces the database.. 
     thank you a lot for your reply.. 
    it will be more more useful if u clear my doubts clearly....
    Regards,
    N. Srinivasan
    Attachments:
    user=pass.PNG ‏35 KB

  • Application server cannot log onto the database with user PS.

    Hello,
    First of all, my setup is:
    Microsoft Windows Server 2003
    Oracle database 10g Rel. 2
    Peopletools 8.49
    HRMS 9.0
    I am trying to boot the application server, but the operation fails with the error message:
    PSAPPSRV.5796 (0) [08/27/09 10:29:41](1) GenMessageBox(0, 0, M): Database Signon: Invalid user ID or password for database signon. (id=PS)
    I am able to sign on to the database with sqlplus and user PS.
    Here is my config settings as shown on the psadmin screen:
    Features Settings
    ========== ==========
    1) Pub/Sub Servers : No 15) DBNAME :[hrdmo]
    2) Quick Server : No 16) DBTYPE :[ORACLE]
    3) Query Servers : No 17) UserId :[PS]
    4) Jolt : Yes 18) UserPswd :[PS]
    5) Jolt Relay : No 19) DomainID :[TESTSERV]
    6) WSL : Yes 20) AddToPATH :[C:\oracle\product\10.2.0\database\bin]
    7) PC Debugger : No 21) ConnectID :[people]
    8) Event Notification: Yes 22) ConnectPswd:[peop1e]
    9) MCF Servers : No 23) ServerName :[appserver]
    10) Perf Collator : No 24) WSL Port :[7000]
    11) Analytic Servers : Yes 25) JSL Port :[9000]
    12) Domains Gateway : No 26) JRAD Port :[9100]
    Here is the appsrv.log:
    PSADMIN.2336 (0) [08/27/09 10:29:29](0) Begin boot attempt on domain hrdmo
    PSWATCHSRV.5480 (0) [08/27/09 10:29:38] Checking process status every 120 seconds
    PSWATCHSRV.5480 (0) [08/27/09 10:29:38] Server started
    PSAPPSRV.5796 (0) [08/27/09 10:29:40](0) PeopleTools Release 8.49 (WinX86) starting
    PSAPPSRV.5796 (0) [08/27/09 10:29:40](0) Cache Directory being used: C:\oracle\product\PT8.49\appserv\hrdmo\CACHE\PSAPPS
    RV_2\
    PSAPPSRV.5796 (0) [08/27/09 10:29:41](1) GenMessageBox(0, 0, M): Database Signon: Invalid user ID or password for databa
    se signon. (id=PS)
    PSAPPSRV.5796 (0) [08/27/09 10:29:41](0) Server failed to start
    PSWATCHSRV.5480 (0) [08/27/09 10:29:42] Shutting down
    PSADMIN.2336 (0) [08/27/09 10:29:48](0) End boot attempt on domain hrdmo
    As I said, despite the error message, I am able to log on to the database with sqlplus with user PS password PS.
    Could someone please help me with this problem? Thanks.

    I installed the database with the setup program and come to think of it, I don't think you can specify whether to create a system or demo database. So I probably didn't install a demo, which is what I wanted. I also ran the SQRs and everything showed the database was correct, so I thought I did it right.
    If I could install a demo with the setup program, I would do that because I think I could run through it pretty quickly having done it once. I've read in this forum and other places that it's much better to install the db manually, so maybe I'll just do that.
    In any case, thanks for all you help Nicolas.

  • Want to export database not user. i am using oracle 8i and developer 6i.

    i am using oracle 8i and developer 6i. i have created a button(when_button_pressed) on d2k with this command mentioned below. it is working only for user objects but i need to export database. how can i do this?
    declare
         com varchar2(100);
    begin
    host('exp tAJCO/tAJCO@tajco file=D:\dump\tajco.dmp');
    if
         not form_success then
         message('Export failed.');
    else
         message('Export successful');
    end if;
    end;
    please help me.....
    thanks
    mostafiz

    mostafiz,
    To Export entirel database, use the statement
         Host('EXP tAJCO/tAJCO@tajco FILE=D:\dump\tajco.dmp FULL=YES DIRECT=Y',NO_SCREEN);
    Regards,
    Manu.

  • Suspect work of database with user in syn

    3. Prepare the database to support ddl replication (optional).
    a) Turn off recyclebin for the database . . .
    SQL> alter system set recyclebin=off scope=spfile;
    Though it’s not required for 11g and onwards.
    . . . and bounce it.
    b) Create schema for ddl support replication . . .
    SQL> create user ggate identified by qwerty default tablespace users temporary tablespace temp;
    . . . and grant the necessary privileges to the new user..
    [oracle@db1 gg]$ cd $GGATE
    SQL> grant connect,resource,unlimited tablespace to ggate;
    SQL> grant execute on utl_file to ggate;
    c) Run scripts for creating all necessary objects for support ddl replication:
    SQL> @$GGATE/marker_setup.sql
    SQL> @$GGATE/ddl_setup.sql
    SQL> @$GGATE/role_setup.sql
    SQL> grant GGS_GGSUSER_ROLE to ggate;
    SQL> @$GGATE/ddl_enable.sql
    Create test schemas for replication. I will create a replication from schema sender to schema receiver (the receiving schema can be on the same database or on another).
    a) Source database:
    SQL> create user sender identified by qwerty default tablespace users temporary tablespace temp;
    SQL> grant connect,resource,unlimited tablespace to sender;
    b) Destination database:
    SQL> create user receiver identified by qwerty default tablespace users temporary tablespace temp;
    SQL> grant connect,resource,unlimited tablespace to receiver;
    ANS. That a sender in one instance known to the receiver in one instance known to me.
    Edited by: 891982 on Nov 2, 2011 2:27 AM

    yes
    port opened
    but observe delivery not work
    and
    Database Language and Character Set:
    NLS_LANG ="AMERICAN_AMERICA.AL32UTF8"
    NLS_LANGUAGE="AMERICAN"
    NLS_TERRITORY="AMERICA"
    NLS_CHARACTERSET="TH8TISASCII"
    Warning:your NLS_LANG setting does not match database server language setting.Please refer to user manual for more information.
    Why?

  • Restart database with user tablespace

    Hi Experts,
    I have one no archive window single instance as 10.2.0.4 at 31 bit window 2003.
    I try to restart DB when DB down. I got message as
    Database mounted.
    ORA-01113: file 7 needs media recovery
    ORA-01110: data file 7: 'D:\ORACLE\ORADATA\SALE\USERS04.DBF'
    How to make table offline and restart DB?
    Thanks help!
    JIm

    Hello,
    After putting the datafile offline drop and opening the database, the datafile "USERS04.DBF" will be lost.
    In fact this command means that you are offlining the datafile with the intention of dropping the Tablespace.
    So, if you intend to drop the Tablespace but you need to keep the objects located in the other datafiles of the
    corresponding Tablespace, you'll have to run an Export then, you could drop the corresponding Tablespace so
    as to clean the data dictionary, recreate the Tablespace and Import the saved datas.
    To drop the corresponding Tablespace you may run these statements
    DROP TABLESPACE <tablespace name> INCLUDING CONTENTS AND DATAFILES;Else, if you want to save this datafile, as your database is in noarchivelog, you may try a complete recovery (from
    the online redologs):
    alter database mount;
    recover database;
    alter database open;If it doesn't work the only way you have is to restore from a Cold Backup.
    Hope this help.
    Best regards,
    Jean-Valentin

  • "Database" with user interface

    Hello all,
    Open to any and all suggestions with this post.  Thank you.
    I'm trying to setup a system I can run off of a dedicated PC or my file server that will allow users to submit information to a csv/excel document.   Ideally I was looking at an html form that would add a new line to a csv or excel file but I'm not sure how (if i can) to do that.
    This topic first appeared in the Spiceworks Community

    Hello Daniel Kilian,
    You may check this thread first:
    User Settings lost after session is released
    Thanks,
    Gordon

  • Want to populate database with form information.

    I created a new form.  I have a number of surveys that I need to input manually.  I input the information.  I quess I would save it under a new name for each survey.  How do i get the 5 surveys into the database? Thanks

    Guides do not provide a means af communicating with a DB. You could submit the data to a server program and have that update the DB on your behalf though.
    Paul

  • How to create database with ASM

    HI
    How to create database with ASM?
    I install vmware workstation on window XP .On virtual machine install Linux 5 enterprise (Oracle) install.
    I install oracle DB software only. Also make 3 disk for ASM .
    1 -- When I want to install oracle DB with ASM . In this process candidate disks not show . Why?
    How I can see disks ..
    so I simple install oracle DB software only.
    2 -- Now I want to create database with ASM by DBCA .
    What process I will follow ?
    Please guide me
    Thanks

    Hi
    Steps to create database with ASM.
    1.Install oracle binary with active CRS(For single node installation CRS is activated when you run root.sh) .
    2.Create disk without file ssytem.
    3.Assign disk to raw .
    4.Change owner and permission to raw devices.
    5.Configure ASM manually or USing DBCA.
    Manually ASM Configuration.
    a.Create initialization parameter file and password file.
    b.Mandatory parameter is "instance_type=asm" as per your need configure rest of parameter like db_cache_size,large_pool_size,processes,remote_login_passwordfile,shared_pool_size etc..
    c.To discover disk configure "asm_diskstring=/dev/raw/raw*"
    Using DBCA to configure ASM.
    1.In storage type section choose ASM.It will ask for password of sysdba in 10g.
    2.ASM configuration window will open -> here it create disk group -> it shows all available ASM candidate disk automatical -> choose normal redundancy,external redundancy or high redundancy.
    ASM disk also can be conbfigured with ASMLIB .
    If ASM disk is configured you can start asm instance in nomount state and query to v$asm_disk to see all candidate disk.V$asm_disk only shows disk which is configured in asm_diskstrings.
    Hope this will help U,
    Tinku

  • Copy few test assignment with User from one database instance to another

    Hi,
    I have OTL ,Payroll and HRMS system. I want to Copy few test assignment with User(Few FND Users) from one database instance to another .
    Source: DEV Instance
    OTL users to enter their Time sheet
    OTL is intergated with HRMS to pickup Employee information
    Existing business users are integrated with Employee assignment etc tables to pickup person_id
    Target: Want to copy few test OTL users from ONE instance to another. Bringing FND_User is easy but EMPLOYEE_ID, PERSON_PART_ID will not come during FNDLOADER .
    How to bring all information from one instance to another instance? Please advice.
    thanks .

    Dear,
       Try using HRMS configuration workbench. For this you might require support from your DBA for configuring the same. Once configured, you can move the items you want.
    Regards,
    Kathan

  • Create New Test Database with all permissions

    Hi all,
    We have a Oracle9i database running on Linux platform . Currently 40 users working on it. Now i want to create another test database with giving all permissions to it. Give your valuable suggestions.
    Regards,
    Sudarshanam

    The answer to your question as I understand now would be,
    grant DBA to <user>;
    But I think you mean something else. Please be more clear

  • How to use your own database with your users to authenticate in a Web app?

    Hello, everybody!
    I'm starting to write my first web application and I'm going to use JSF, JPA and EJB3 in this application. One of the first things that I have to do on it is the authentication part where I'll have a page with a user name and a password for the user to login. So, as I'm new to all this in Java (I've already implemented this on .NET in the past), I was studying the Java EE 5 Tutorial, especifically the section "Example: Using Form-Based Authentication with a JSP Page". But I saw that the users that the sample application uses come from the file realm on the Application Server. The users are created there and assigned a name, a password and a group. After the users are in the Application Server we can simply uses forms authentication declaratively in the deployment descriptor (web.xml).
    But the problem is that this doesn't work to me as I already have my own database with my users, so I want to use it instead of having to create the users on the Application Server.
    So, I'm asking you how to do that. Of course I'm not expecting that you place the code here to me as I know that such a thing could be complicated. Instead, I'm asking if you know about some tutorial, article, book or something that teaches how to do what I want. But I would like to see theses examples using JSF and/or EJB3 because these are the technologies that I'm using to develop. It's a pity that the Java EE 5 Tutorial doesn't have an example using a custom database as I know that this situation is very common in the majority of web sites.
    Thank you very much.
    Marcos

    From memory, it goes like this... You just create a
    raw jdbc connection on your user database using a
    special "login" DB user account, which has
    permissions only to an "authenticate" stored query,
    which accepts two arguments: username & password, and
    returns a boolean 0 or 1 rows found.When I implemented this in .NET's ASP.NET I had the same solution. I had an special user created in the database that I used to log in. When the real user entered his username and password I was already logged in and I had just to check his username and password agains the right table in my database.
    But that was only possible bacause when I connected to the database using my hidden user, I used the rights APIs in ASP.NET that coordinate the authentication process. This means that before login in, no one could access any resources (pages, atc...). So what I'm saying is that I can't manager this manually in Java. Java has to have some API or whatever to allow me to control the login process programmatically, while letting the Application Server control the access to the resources.

Maybe you are looking for