How to create user for oracle10g/11g asm instance
比如,ogg裡的asm賬號配置:
GGSCI (OSS-FWKT-DB1) 28> edit param EXTIOM
"/arch_1/ogg/dirprm/extiom.prm" 24 lines, 675 characters
extract extiom
setenv(NLS_LANG = AMERICAN_AMERICA.ZHS16GBK)
dynamicresolution
userid ogg,password ggspwd
TRANLOGOPTIONS ASMUSER ggadm@ASM,ASMPASSWORD ggadm--這裡就是asm例項賬號。
exttrail /arch_1/ogg/dirdat/pf
DBOPTIONS ALLOWUNUSEDCOLUMN
nocompressupdates
table IOM.WO_WORK_ORDER_DETAIL;
table IOM.OM_ORDER;
table IOM.OM_SERVICE_ORDER;
然而在10g版本里,ogg訪問asm例項是有限制的:
SYS@ASM_instance
Specifies the ASM instance for the connection string. The user must be SYS.
此外10g版本里,沒法在asm例項裡建立使用者。只能通過配置密碼檔案來實現密碼的變更來用新密碼登陸asm例項:
Oracle ASM is managed by a set of processes called an Oracle ASM instance. In comparing an ASM instance to a database instance; one can see similar processes for an ASM instance, as for a database instance at the operating system level.
Similarly, ASM can be implemented in a cluster configuration with multiple instances accessing a single ASM storage system (compare with a RAC database in which multiple database instances access a single database).
An Oracle ASM instance can be accessed remotely through a database listener. Connections to an Oracle ASM instance may only be made as a user with the SYSDBA privilege. The default ASM user is SYS. A major difference with ASM, as compared to a database instance, is that users cannot be added to an ASM instance. However a different username with the SYSDBA privilege may be specified through the password file.
Using a password file
The use of a password file is mandatory to connect remotely to an instance using a SYSDBA privilege. The first step is to find out whether the ASM instance is configured to make use of a password file. Connect to the ASM instance (using SYS (or /) as SYSDBA) and run the following query:
select value from v$parameter where name = ?remote_login_passwordfile?;
There are three possible outcomes for this query:
-
NONE
- The instance will not make use of a password file if there is one.
-
EXCLUSIVE:
- The password file is only used for this ASM instance.
-
SHARED:
- The password file may be used by other ASM or database instances.
If there is no password file, then the ASM instance will behave as if the setting for remote_login_passwordfile is NONE. If remote_login_passwordfile is set to NONE, set it to EXCLUSIVE or SHARED using an alter system command or by editing the init+ASM.ora file (followed by a restart of the ASM instance).
Next make sure a password file was generated for the ASM instance, and if it wasn?t, generate one. More information on how to configure and generate a password file is in the Oracle Database documentation.
For GoldenGate to connect to the
ASM instance with a username other than the SYS username and password a SHARED
password file is required.
*************************************************************************************
grid@OSS-FWKT-DB1:/home/db/grid$ sqlplus '/ as sysasm';
SQL*Plus: Release 11.2.0.4.0 Production on Tue Feb 3 20:30:52 2015
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
SQL> grant sysasm to ggadm;
Grant succeeded.
SQL>
SQL> create user gg identified by gg;
User created.
SQL> grant sysasm to gg;
Grant succeeded.
SQL> grant sysdba to gg;
Grant succeeded.
SQL> drop user gg;
User dropped.
SQL>
注意:
When capturing from an ASM instance via the ASMUSER option, the maximum amount of data read by Capture is 28,672 bytes. With a default read and write buffer size of 1,024,000 bytes DBLOGREADER provides the capability to capture large database transactions more efficiently.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/13750068/viewspace-1426564/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- How to re-create the ASMASM
- How to Convert a Single-Instance ASM to Cluster ASM [ID 452758.1]ASM
- ASM 11g New Features - How ASM Disk Resync WorksASM
- How to Increase CSS Misscount in single instance ASM installations [ID 729878.1]CSSASM
- HOW TO USER UNZIP
- ASM Spfile Is Not Used when ASM Instance StartsASM
- How To Delete An Oracle Applications UserdeleteOracleAPP
- How to restore ASM based OCRRESTASM
- How to cleanup ASM installationASM
- ASMCA fails to create 11.2 ASM instance when upgrading from 10.2 [ID 1125053.1]ASMAI
- asm 相容性、asm instance 主要引數管理ASM
- Laravel NO_AUTO_CREATE_USER 錯誤Laravel
- How to Rename Tablespace In Oracle10gOracle
- How to maintain Oracle10g RecyclebinAIOracle
- How To Change The Asm Rebalancing PowerASM
- Oracle ASM User Directory and Group DirectoryOracleASM
- How to Operate SharePoint User Alerts with PowerShell
- How to Prepare Storage for ASM (Doc ID 452924.1)ASM
- oracle10g asm---第三回---asmOracleASM
- Convert a Single-Instance to RAC with ASMASM
- How to Create Oracle Database QoS Management Administrator AccountsOracleDatabase
- How to create and relocate an 11gr2 RAC DATABASE SERVICEDatabase
- How to Quickly Create a Copy of a Table using Transact-SQLUISQL
- Oracle ASM How many allocation units per fileOracleASM
- GoldenGate&ASM&Connecting to a 'BLOCKED' instanceGoASMBloC
- 能夠管理ASM instance的三種角色ASM
- 詳解oracle使用者建立(create user)(下)Oracle
- 詳解oracle使用者建立(create user)(上)Oracle
- [Oracle] oracle 11g dataguard (one instance)Oracle
- oracle10g ASM transport_tablespaceOracleASM
- Step by Step Guide on How to Create Logical Standby [ID 738643.1]GUIIDE
- How to move ASM database files from one diskgroup to anotherASMDatabase
- How to use ASMCA in silent mode to configure ASMASM
- Oracle資料庫中Create user的注意事項Oracle資料庫
- 資料庫審計(create/alter/drop table、user、tablespace)資料庫
- oracle10g ASM+RAC安裝OracleASM
- 在Oracle10g 新增ASM磁碟組OracleASM
- Oracle10g使用ASM注意事項OracleASM