Security about SYSTEM and SYS users

Guys,
Just curiosity,
1) What happens if I logged with a user that have DBA role or DROP USER privilege and to drop the SYSTEM or SYS user ? This is possible ? If yes, how can protect them ?
2) I know that the SYS is owner of the dictionary and catalog, but what is the objective of the SYSTEM user to exists ?
Tank you.

Hi,
As you say, SYS is the owner of the database and the owner of the data dictionary.
But SYS has the SYSDBA privilege which SYSTEM doesn't. This makes it possible for SYS to become a very very powerful user. In addition, never ever create objects in the SYS schema. SYSTEM is a privileged administration user, and typically owns Oracle provided tables other than the dictionary.
Making a test.
oracle@linux:~> sqlplus
SQL*Plus: Release 9.2.0.4.0 - Production on Thu Dec 7 08:55:51 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Enter user-name: / as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 126948772 bytes
Fixed Size 452004 bytes
Variable Size 104857600 bytes
Database Buffers 20971520 bytes
Redo Buffers 667648 bytes
Database mounted.
Database opened.
As Frederic showed
SQL> drop user sys cascade;
drop user sys cascade
ERROR at line 1:
ORA-01031: insufficient privileges
SQL> drop user system cascade;
User dropped.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 126948772 bytes
Fixed Size 452004 bytes
Variable Size 104857600 bytes
Database Buffers 20971520 bytes
Redo Buffers 667648 bytes
Database mounted.
Database opened.
SQL>
If you like to protect it, you can do this below:
eg:
create table secured_objects(object_name varchar2(30));
Table created.
SQL> insert into secured_objects values ('SYSTEM');
1 row created.
SQL> select * from secured_objects;
OBJECT_NAME
SYSTEM
1 rows selected.
create or replace trigger check_beforedrop
before drop on database
declare
oname char(30);
begin
select object_name into oname from secured_objects
where upper(object_name)=ora_dict_obj_name;
if sql%found then
RAISE_APPLICATION_ERROR(-20001,'You have not permission to drop this object.');
end if;
exception
when no_data_found
then dbms_output.put_line('This object was dropped.');
end;
SQL> drop user system cascade;
drop user system
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-20001: You have not permission to drop this object.
ORA-06512: at line 7
Reference: http://www.adp-gmbh.ch/ora/misc/sys_system_internal.html
Cheers

Similar Messages

  • Authentication problem for SYSTEM and SYS users

    Hi,
    I am using form builder 6.0. I have developed a form without using a database table block. When trying to execute the form with user SYSTEM or SYS following errors occured:
    1) does not authenticate and login screen prompts again and again but when I use user other than SYSTEM and SYS, I can successfully execute the form.
    2) some times when trying to run form from Form builder error 'Service handle not initialized' is displayed.
    anybody can help to resolve the following issues?
    Regards

    Muhammad,
    two possibilities
    1. You provide the wrong password
    2. Connecting to SYS reaquires to connect as SYSDBA or SYSOPENER, which is not specified with the Forms logon dialog.
    Frank

  • SYSTEM and SYS password 11g on Windows Vista

    Hello
    I am having trouble. I do not know my SYSTEM and SYS passwords. I am using oracle 11g on windows vista. I tried to change the passwords but that did not work. I tried this:
    c:/>sqlplus "/ as sysdba"
    c:/>show user
    c:/>passw system
    then I changed the password. When I tried to log in the password change did not take effect. Any help would be great!

    Hi,
    There is no default password for sys and system in 11g.
    you cna use the below command to change the system or sys password
    alter user SYSTEM identified by PASWORD
    same for sys
    nOTE: password are case sensitive.Regards,
    Taj

  • Difference between RFC, SYSTEM and AUDIT users?

    Hi All,
    Can you highlight the main differences between the following users:
    RFC
    SYSTEM
    AUDIT
    how do their functions differenciate them ?
    Thanks in advance,
    Diwakar

    RFC User
    RFC user is basicly used to receive status messages. An RFC user has to be created in all the system clients where messages needs to be recieved. An RFC user can also be used for receiving messages using SMTP plug-in.
    The RFC User is an sap user of type System and that's why no person can logon with this user on SAP System.
    Following is thr procedure to create RFC User, remember the purpose is to recieve messages including status messages as well.
    Creation of RFC User
    Go to  Tools > Administration > User Maintenance > Users.
    Enter a name, for example MAIL_ADMIN.
    Select "New"
    On the Logon data tab page, select the user type System.
    Enter a password.
    On the Profiles tab page, enter the authorization profile S_A.SCON. This profile minimizes the risk of misuse, even if the communication system does not store the password is encoded form.
    Select "Save"
    Both RFC user and a System user are of type System only. Now the difference, depends upon the profile and authorization of the user.
    Audit users are of type dialog, and can be used by a person to logon to system. There might be many roles assigned to this user. My understanding is that an Audit User is not a standard sap type user but just a dialog user and can be created with a conventional method of creating any other dialog users with a specific profile and authorizations.
    Still to confirm, Can you please tell us, how many types of users does it shown in 4.6c at the time of user creation?
    Best Regards,
    Amol Bharti

  • About ASM and Oracle user

    Hi,
    is there any way to installing ASM executable and database executable by diffrent operating system user.
    It means that
    there are two user one of them
    [tuba@pttstgen24 ~]$ id
    uid=500(tuba) gid=500(dba) groups=500(dba),501(oinstall)
    and the other one
    [tuba02@pttstgen24 database]$ id
    uid=501(tuba02) gid=501(oinstall) groups=500(dba),501(oinstall)
    I want to install ASM by using tuba and I want to create db by using tuba02
    but it gives the error and db installation did not discover the ASM.
    However,
    when installing db with tuba on ASM it is successfull?
    İs there any way to install ASM and Db by different users??

    Hi Terbas,
    Its is possible on Oracle 11g, see this link http://www.filibeto.org/sun/lib/nonsun/oracle/11.1.0.6.0/B28359_01/install.111/b28263/rcprelin.htm#BABGCHAD
    Regards,
    Rodrigo Mufalani

  • Question from Mac newbie about system and startup programs

    I recently switched from an old Win 98 computer and LOVE this macbook! Could someone please explain a couple of things to me?
    Two windows now suddenly appear when I restart my computer - one is a window with all the files and folders stuff from when I installed my Canon MP500 printer last week. Why is this box opening at startup, and can I get it to stop?
    The other suddenly opening at restart is a simple Finder window showing my hard drive and network. (I am not connected to a network). What's the source of these things starting up? How can I fiddle with this setting? These things are not listed when I go to System Preferences-Accounts-Login items.
    On Windows you can hit CtrlAltDelete and see all the running programs, even background programs. How do I do it on the Mac?
    Thanks,
    -Alden

    Charles I'll start from your last question. You'll find "Activity Monitor" in the Utilities folder (inside Applications folder) that's the equivalent to the Task Manager in Windows. you can leave it in the dock to have it handy.
    About the Canon printer window showing when you start; see if it has an open icon on the dock when it's open. Click and maintain clicked on that icon (if there is one) and uncheck "Open at Login".
    Finder Window usually opens at login if it was open when you logged out
    Oh, and Welcome to the forums!

  • TS3798 Using the iphone 4s i am using safari to try to open a web address for a security cam system and it says server not found.  Using wifi at home....what does this mean??

    Iphone4S - trying to connect to a webpage via safari and it says cannot find server.  Help.

    I have noticed this. One time it crashed when using a video app such as VLC, and another time when changing desktops between an app playing a video and say Skype or Google Chrome (I can't be sure which).
    Here's some more information about my Mac if it helps:
    Operating System: OS X 10.9.2 (Mavericks) 13C64
    Model: Apple Late 2013 Retina MacBook Pro 15"
    Processor: 2.3 GHz Intel Core i7
    Memory: 16GB 1600MHz DDR3
    Graphics: Intel Iris Pro 1024MB
    I've noticed that my case is similar to some people's in this thread.

  • Wireless Cisco System and AD users

    I want to add guest wi-fi account, users which in AD (authentification Microsoft IAS), but not create special lobby user in WCS. I use
    http://www.cisco.com/en/US/docs/wireless/wcs/5.1/configuration/guide/wcsadmin.html#wp1063447 for example, but when I try loggin, I have mistake "Error: Login failed". I think that mistake in configure policy in IAS, but cann't find where exactly. Maybe Vendor parameter

    Well, it seems something missing in the config. but you have to isolate.
    What is the WCS versoin you are using?
    The troubleshoot steps mentioned in the same link you put:
    To troubleshoot, perform the following steps:     •Verify if the RADIUS packet is an access accept.     •Verify the task names for the user group in the access accept.     •Look at the different length fields in the RADIUS packet.
    Advise: try always to use config guide for the same version you are using. If you have WCS 7.x use config guide for 7.x. The link you put is for WCS 5.1. In this case they have almost same thing for your step. Howeve, sometimes they differ.
    WCS 7.0 link is: http://www.cisco.com/en/US/docs/wireless/wcs/7.0/configuration/guide/7_0admin.html#wp1063447
    Your step is now to capture the traffic and see if there is access-accept or access-reject. If access-accept then study the packet and make sure it is with same format that is needed with all VSAs included.
    You check IAS logs also to see if the auth request succeeded or failed. but you still need to view the packet to verify it's content. (not sure if packet contents appear in IAS logs, but if they do then it is enough to check the logs to see what was sent).
    HTH
    Amjad

  • Copy command fails after installing Raid system and new user accounts

    Any help is appreciated. We installed a Raid to an existing Xserve at our school. We have created new accounts on the server.All other commands such as observe, control, sending messages and so works OK.
    When I try to copy files, pictures, and so on... it immediately fails. It gives me no explanation or anything.
    Any help?

    Hi Tilly,
    We had this same exact problem at our school. Copying to network users always failed, everything else worked fine.
    We changed the owner of the Sharepoint where the student accounts reside from our Administrator user to 'Root'
    We changed this through Workgroup Manager -> Sharing, selected the Sharepoint in the left column, clicked on the Access tab and changed the owner to 'root' and click save.
    Also found this link:
    http://lists.apple.com/archives/remote-desktop/2007/Nov/msg00009.html
    Hope this helps!

  • SYS, SYSTEM and SYSAUX when full database refresh.

    I took full export from database using below command
    expdp "'/ as sysdba'" full=Y directory=DPUMP_DIR dumpfile=expdp_11032011.dmp logfile=expdp_11032011.log Now, I need to import this file to an other database.
    When do schema refresh we usually drop all the object in that schema and start refresh, but when doing fullback up, do we need to drop all user?
    what about sys, system and sysaux user?

    user3636719 wrote:
    So, the tables in the SYS and SYSTEM will remain same when we refresh?
    Structure will not be modified but contents will be automatically modified when DLL is executed when importing.
    And do we have to drop other user before we import?Applications schemas that you have created should be dropped. In general don't modify any schema that is directly managed by Oracle such as SYS or SYSTEM or any schema used by some database option like Oracle Text, Oracle Spatial, etc.

  • Export system or sys schema

    If I am using imp/exp export schema system and sys, is it possible?

    Girish Sharma wrote:
    Sir,
    As per your saying that SYS will not be included in export i tried following command and i got SYS schema exported:
    In windows:
    exp 'sys/pw@orcl as sysdba' owner=sys file=xx.dmp feedback=10 log=xx.dmp
    In Linux:
    expdp \'sys/pw@orcl as sysdba\' schemas=sys dumpfile=xx.dmp logfile=xx.logLike other has suggested, you can run exp/expdp doesn't mean you get it exported. See some example,
    %exp sys  owner=sys file=test.dmp
    Username: sys as sysdba
    Password:
    Connected to: Oracle Database 10g Enterprise Edition
    Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses AL32UTF8 character set (possible charset conversion)
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user SYS
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user SYS
    About to export SYS's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . exporting synonyms
    . exporting views
    . exporting stored procedures
    . exporting operators
    . exporting referential integrity constraints
    . exporting triggers
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting materialized views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh groups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully with warnings.As you can see no objects are listed as exported.
    This Oracle metalink has this explained
    Schema's CTXSYS, MDSYS and ORDSYS are Not Exported
    Doc ID: Note:228482.1
    Also if you check $ORACLE_HOME/rdbms/admin/catexp.sql
    which is the script to Creates internal views for Export/Import utility
    You will see
    CREATE OR REPLACE VIEW exu81obj AS
            SELECT  o$.*
            FROM    sys.obj$ o$, sys.user$ u$
            WHERE   BITAND(o$.flags, 16) != 16 AND
                    /* Ignore recycle bin objects */
                    BITAND(o$.flags, 128) != 128 AND
                    o$.owner# = u$.user# AND
                    u$.name NOT IN ('ORDSYS',  'MDSYS', 'CTXSYS', 'ORDPLUGINS',
                                    'LBACSYS', 'XDB',   'SI_INFORMTN_SCHEMA',
                                    'DIP',     'DMSYS', 'DBSNMP', 'EXFSYS',
                                    'WMSYS')These database dictionary metadata schemas are deliberately excluded.
    -hint- Maybe be by changing this script, you can get them included ;)
    But don't take my word on that, changing DB dictionary is not supported in anyway.
    >
    Please quote your valuable suggestations because as per your saying i argued in a long debate with my friends that "we can not take export of sys's schema, because Ying sir is saying like that". I shall be highly informative on your feedback please.
    I appreciate you take my word so seariously and I am glad I didn't let you down in this case.

  • ORA-07200 error during connect into system or sys

    I have installed ORACLE8i EE on redhat6.2.
    Installation was successfull. But when I try
    to connect to system or sys user it throws
    ORA-07200 Saying sls-sid not defined where as
    ORACLE_SID is set in oratab also the database
    is up and running.
    Can someone provide the solution.
    Thanks,
    Chandramohan

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Chandramohan MUmmachi:
    I have installed ORACLE8i EE on redhat6.2.
    Installation was successfull. But when I try
    to connect to system or sys user it throws
    ORA-07200 Saying sls-sid not defined where as
    ORACLE_SID is set in oratab also the database
    is up and running.
    Can someone provide the solution.
    Thanks,
    Chandramohan<HR></BLOCKQUOTE>
    Hi Chandramohan,
    I think u should run netasst from ur bin directory and configure ur listner and connect data properly
    Check ur tnsnames.ora and listner.ora in network/admin directory in $ORACLE_HOME , i thnk this should help u out.
    null

  • Oracle on NT (Logmnr and Internal User fail)

    Hi,
    My Environment is NT. I got two questions First, I have problem to use "Log Viewer"
    DBMS_LOGMNR_D to create the dictionary file.
    In the statement, I should have file name and file directory to generate the dictionary file. The problem is the file directoy format of NT and Unix is different, so I changed the file directory to the right format for NT. However, I tried several kinds of format. None of them works. So, does anyone knows the right format for "logmnrd" for NT?
    Second, my test environment can not be logged in as internal user , system and sys. I am sure the password is correct, but at the time I connectted by them. I got the error message indicating me that "Insufficient Privilege". I don't know why? So the only way for me the shutdown the database is through the NT services.
    Does any one know how to solve this?
    Thanks in advance.
    chechun

    Hi,
    My Environment is NT. I got two questions First, I have problem to use "Log Viewer"
    DBMS_LOGMNR_D to create the dictionary file.
    In the statement, I should have file name and file directory to generate the dictionary file. The problem is the file directoy format of NT and Unix is different, so I changed the file directory to the right format for NT. However, I tried several kinds of format. None of them works. So, does anyone knows the right format for "logmnrd" for NT?
    Second, my test environment can not be logged in as internal user , system and sys. I am sure the password is correct, but at the time I connectted by them. I got the error message indicating me that "Insufficient Privilege". I don't know why? So the only way for me the shutdown the database is through the NT services.
    Does any one know how to solve this?
    Thanks in advance.
    chechun

  • Creating and deleting users using AM Client SDK

    Hi,
    I was wondering if anyone could tell me how to create and/or delete users from Access Manager from a standalone application using the AM Client SDK? From what I have read this can be done using the AMStoreConnection class but I can't find any examples on how to use this class to add and delete users. The only examples I have found is how to retrieve data from AM. I need to keep AM and the underlying directory server in sync with another identity datastore so I need to build a process in Java to do this. Any help is appreciated.
    Thanks
    -Jeff

    Lets assume we have a HR system and the user has got deleted in the system, the HR system drop a CSV file to a specified location with the details of the user to be deleted from the IDM system . Now the CSV GTC connector would need to read the record and delete the user .
    This can be done , I have done this using API calls , but i assume that there would be someway of doing this using the OOB GTC .I think we need to set the correct value for the status field to do this ..
    I am not sure what status to set.

  • Is this legit?             Confirm your email address  Dear Email Users,  As part of our security measures, we regularly screen activity in the E-mail system and after noticing an issue on your account password, we are requesting confirmation from you for

      Is this legit?
       Apple Support Team <applsupporteam @icloud.com>
           Confirm your email address
    Dear Email Users,
    As part of our security measures, we regularly screen activity in the E-mail system
    and after noticing an issue on your account password, we are requesting confirmation
    from you for the following reason:
    Our system requires further password verification.
    In accordance with E-mailUser Agreement, your account access will remain limited
    until the issue has been resolved. Unfortunately, if access to your account remains
    limited for an extended period of time, it may result in further limitations or
    eventual account closure.
    To verify your E-mail account, you must reply to this email
    immediately and enter your following
    information.
    First Name:
    Last Name:
    Email Username :
    Email Password :
    Thank you for using webmail
    Icloud. com support team
    <Edited By Host>

    Apple requests that you forward these types of emails to them as follows (from http://support.apple.com/kb/HT4933):
    If you receive a suspicious email, select the message text so that it is highlighted. Choose Forward as Attachmentfrom the Message menu (OS X Mail) or the Actions menu (Outlook). Send the email to [email protected] This provides Apple's legal department and law enforcement with useful information to help prevent future phishing emails.

Maybe you are looking for

  • Interesting performance anomaly during video encode

    I just noticed an interesting anomaly while my iDVD6 project was encoding video. I found that if I cover up the 'Creating Your DVD' progress bar and preview window with a Finder window, that video encoding seems to move a whole lot faster. I could te

  • Having paragraphs at an angle

    Hi, Hope you're well. I'd like to create a few paragraphs that have the same treatment as the one I have attached. The key thing is to have the first letter of the first word of each line line-up under each other so that the left margin creates the a

  • Validation message

    Hi I have a code segment like this - <messageTextInput name="WlCensusNonTreatPrimary" promptAndAccessKey="& " shortDesc="Enter the number of applicants" data:readOnly="isViewing@jheadstart:ServiceDelivery" onBlur="check()"> <onBlurValidater> <decimal

  • EDI ALE IDOC

    Hello Experts, I am a bit confused by IDOC , ALE. I know that idoc is an intermediate document. ALE is a technology. EDI is a general, non-proprietary concept. Instead of the definitions, I like to understand from a layman perspective what is IDOC an

  • Unable to create SAPUI5 project on NWDS 7.31 SP10

    Hello Experts, I want to use SAPUI5 NWDS Plugin for my NWDS installation. NWDS version is 7.31 SP10 (Java is sapjvm_6). SAPUI5 Plugin file is UI5TOOL07_0-10011992.zip. The plugin was installed successfully but when I try to create project I get stuck