Read about how to check user privileges in oracle 11g, The latest news, videos, and discussion topics about how to check user privileges in oracle 11g from alibabacloud.com
This article introduces some common statements used to import and export tablespaces in oracle 11g linux. For more information, see.
Sqlplus
/As sysdba
-- View the dbf storage locationSelect * from dba_data_files; -- view the file location SELECT * FROM dba_directories;-- Create a tablespaceCreate tablespace bp_oracle logging datafile '/u02/oradata/devdb/bp_oracle.dbf' size 100 m autoextend on next 50 m max
The Oracle HR sample user's build 10g,11g can bePut the 10. sql files on the attachment (see the end of the article) in this path first:$ORACLE _home/demo/schema/human_resources
Script Name
Description
Hr_analz.sql
Collects statistics on the tables in the schema.
Hr_code.sql
Creates procedural objec
Today, I heard colleagues talk about the Oracle password expiration, only to remember that the Oracle 11g Default user password is valid for 180 days, Oracle 10g Default User password is life.
When you install Oracle, if you do not reset the password for the following users, the default password is as follows:
User name/Password login Identity descriptionSys/change_on_install SYSDBA or Sysoper cannot be logged in as NORMAL as the default system administratorSystem/manager SYSDBA or NORMAL cannot be logged on as a sysoper, as the default system administratorSysman/oem_temp Sysman as OMS
A.granted_role=b.granteeUnionSelect Grantee,privilege,owner,table_name from Dba_tab_privs) dwhere exists ((select 1 from dba_users C where d.username=c.username))Order by;4. How do I see who has a DBA role? general practice is to directly query the Dba_role_privs view. The query statements are as follows:Select Grantee,granted_role from Dba_role_privs where granted_role= ' DBA '; //This will miss the userthe correct query should be queried by the following statement:SELECT * FROM (SELECT DISTIN
1. Start Sqlplus2. Please enter your username: Sqlplus/as sysdba3. Enter Password: direct return(Note: For SYS both lock and not lock can be locally certified log into SYSDBA)4. Connect to:Oracle Database 11g Enterprise Edition release 11.2.0.1.0-productionWith the partitioning, OLAP, Data Mining and real application testing optionsSql>alter User sys identified by admin;The
1. Check the number of tables in the specified user table in the SQL statement of Oracle (provided by Koko)
Bytes ------------------------------------------------------------------------------------------------------------
Syntax:
Select * From dba_tables t where T. Owner = 'user id ';
Dba_tables: a dba with
/bp_oracle Directory=dump_dir dumpfile=bp_oracle.dmp version=10.2.0.1.0--Remove TablespaceDrop tablespace bp_oracle including CONTENTS and datafiles;--delete the user, and execute the statement carefully, the Cascade deletes all objects under that user.Drop user bp_oracle cascade;--Modify User passwordAlter user bp_ora
1. After logging on to Oracle, enter the following command:
[Oracle @ localhost ~] $ Vi. bash_profile
2. Add from # huzia.
#. Bash_profile
# Get the aliases and functions
If [-f ~ /. Bashrc]; then
.~ /. Bashrc
Fi
# User specific environment and startup programs
PATH= $ PATH: $ HOME/bin
Export PATH
# Huzia 2011.08.28
#
Monday August 4 17:54:06 2014Copyright (c) 1982, +, Oracle. All rights reserved.ERROR:Ora-01017:invalid Username/password; Logon deniedPlease enter user name:
C:\Documents and Settings\guogang>sqlplus Gg_test/gg_test@10.10.15.25_ggSql*plus:release 10.2.0.1.0-production on Monday August 4 17:52:35 2014Copyright (c) 1982, +, Oracle. All rights reserved.Connect to
) Statistics need to authorize the statement Grant create session,connect to DW; GrantSelectOn V_$sql to DW; GrantSelectOn v_$session to DW; GrantSelect, insert on Timdba.uc_logon_off to DW; --(2 Create a temporary table that records all user create table TIMDBA. Z_users as SelectDistinct owner fromall_objects; --(3 generates an authoritative SQL statement Select 'Grant Create Session,connect to'|| Owner | |'; ' fromTimdba. Z_users TwhereT.owner not
Tags: sys system SYSDBA Sysoper1,oracle Default user name, passwordUsername/Password Login identity (role) descriptionSys/change_on_install SYSDBA, Sysoper cannot log in as NORMALSystem/manager NORMAL cannot log in with SYSDBA, SysoperScott/tiger Normal Normal User2, user sys and system Sys : sysdba(System administrator) Sysoper(System Operator) dba(Database Ad
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.