oracle asm configure error
[
2010/03/28 21:50 | by askwan ]
2010/03/28 21:50 | by askwan ]
when i configure the oracle asm lib for my linux system (CentOS 4.7 x86)
the i check the system log message ,found that :
the files were right version,
but what cause this problem ?
after check the grub.conf ,i found i have made a mistake , the system running kernel is 2.6.9-78.ELsmp , but what i have download is 2.6.9-78.EL ,when i installed the right asm lib version ,then things seems all right!
Concluding: you must download the right oracle asm lib version that match your system kernel 100%!
---END---
[root@ra ~]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [FAILED]
the i check the system log message ,found that :
Mar 28 21:32:23 ra modprobe: FATAL: Module oracleasm not found. Mar 28 21:32:23 ra oracleasm: Unable failedthen ,i checked the asmlib version matched my linux server kernel or not ,yes i belive
the files were right version,
# uname -a Linux ra 2.6.9-78.ELsmp #1 SMP Fri Jul 25 00:04:28 EDT 2008 i686 i686 i386 GNU/Linuxand the files i have downloaded:
- oracleasm-2.6.9-78.EL-2.0.5-1.el4.i686.rpm
- oracleasmlib-2.0.4-1.el4.i386.rpm
- oracleasm-support-2.1.3-1.el4.i386.rpm
but what cause this problem ?
after check the grub.conf ,i found i have made a mistake , the system running kernel is 2.6.9-78.ELsmp , but what i have download is 2.6.9-78.EL ,when i installed the right asm lib version ,then things seems all right!
[root@ra ~]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface [oracle]:
Default group to own the driver interface [dba]:
Start Oracle ASM library driver on boot (y/n) [y]:
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
Concluding: you must download the right oracle asm lib version that match your system kernel 100%!
---END---
"500 ERROR: User 'root' cannot be used as an NX user"
[
2010/03/27 11:38 | by askwan ]
2010/03/27 11:38 | by askwan ]
OS: CentOS 5
NXserver : 3.4
for security reasons, Nomachine can't allowed you to login with user root default!
if you want to login with root,then you can do followings!
or
then
now,you can login with user root!
NXserver : 3.4
NX> 203 NXSSH running with pid: 3164
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: xx.xx.xx.xx on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 3.4.0-12 - LFE
NX> 105 Hello NXCLIENT - Version 3.4.0
NX> 134 Accepted protocol: 3.4.0
NX> 105 Set shell_mode: shell
NX> 105 Set auth_mode: password
NX> 105 Login
NX> 101 User: root
NX> 500 ERROR: User 'root' cannot be used as an NX user
NX> 999 Bye.
NX> 280 Exiting on signal: 15
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: xx.xx.xx.xx on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 3.4.0-12 - LFE
NX> 105 Hello NXCLIENT - Version 3.4.0
NX> 134 Accepted protocol: 3.4.0
NX> 105 Set shell_mode: shell
NX> 105 Set auth_mode: password
NX> 105 Login
NX> 101 User: root
NX> 500 ERROR: User 'root' cannot be used as an NX user
NX> 999 Bye.
NX> 280 Exiting on signal: 15
for security reasons, Nomachine can't allowed you to login with user root default!
if you want to login with root,then you can do followings!
$vim /usr/NX/etc/server.cfg
EnableAdministratorLogin = "1"
EnableAdministratorLogin = "1"
or
EnableUserDB = "1"
EnablePasswordDB = "1"
EnablePasswordDB = "1"
$nxserver --useradd USERNAME [--administrator]
[--system [--home[=homedir]|--nohome][--gid[=gid]]
[--uid[=uid]]]
$nxserver --userenable USERNAME
# Enable the NX login for the specified user. This command is allowed
# only when NX user DB is enabled in the server configuration file.
$nxserver --userdisable USERNAME
#Disable the NX login for the specified user. Both the system and NX
#password, when the NX password DB is enabled, of the user are left
#unchanged.
[--system [--home[=homedir]|--nohome][--gid[=gid]]
[--uid[=uid]]]
$nxserver --userenable USERNAME
# Enable the NX login for the specified user. This command is allowed
# only when NX user DB is enabled in the server configuration file.
$nxserver --userdisable USERNAME
#Disable the NX login for the specified user. Both the system and NX
#password, when the NX password DB is enabled, of the user are left
#unchanged.
then
/etc/init.d/nxserver restart
now,you can login with user root!
create a standby database using active database duplication in oracle 11g
[
2010/03/26 18:01 | by askwan ]
2010/03/26 18:01 | by askwan ]
active database duplication is a new feature in oracle 11g,it can create a standby database for data guard without any preexisting backups to start the database duplication process.
this is an example noted by me to test this feature on the same host.
env and plans:
IP:192.168.0.120
DB: Oracle 11g 11.2.0.1.0 for linux 64bit
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
primary database:
instance name: ora11gr2
db_unique_name: ora11gr2
net service name: ora11gr2
oracle data file,online redo log file and controlfile are located in : /u01/app/oracle/oradata/ora11gr2
alert file located in: /u01/app/oracle/admin/ora11gr2
archied log file are located in:/u01/app/oracle/archive/ora11gr2
standby database:
instance name: standby
db_unique_name: standby
net service name :standby
oracle data file,online redo log file and controlfile are located in : /u01/app/oracle/oradata/standby
alert file located in: /u01/app/oracle/admin/standby
archied log file are located in:/u01/app/oracle/archive/standby
preparatory work:
1)install oracle11g software and create a database ora11gr2 in 192.168.0.120.
2)create dir for standby
3)alter primary database ora11gr2 to archive log mode
4)alter primary database to force logging mode.
5)modified initial startup file in primary database
this is an example noted by me to test this feature on the same host.
env and plans:
IP:192.168.0.120
DB: Oracle 11g 11.2.0.1.0 for linux 64bit
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
primary database:
instance name: ora11gr2
db_unique_name: ora11gr2
net service name: ora11gr2
oracle data file,online redo log file and controlfile are located in : /u01/app/oracle/oradata/ora11gr2
alert file located in: /u01/app/oracle/admin/ora11gr2
archied log file are located in:/u01/app/oracle/archive/ora11gr2
standby database:
instance name: standby
db_unique_name: standby
net service name :standby
oracle data file,online redo log file and controlfile are located in : /u01/app/oracle/oradata/standby
alert file located in: /u01/app/oracle/admin/standby
archied log file are located in:/u01/app/oracle/archive/standby
preparatory work:
1)install oracle11g software and create a database ora11gr2 in 192.168.0.120.
2)create dir for standby
$mkdir /u01/app/oracle/oradata/standby
$mkdir /u01/app/oracle/admin/standby
$mkdir /u01/app/oracle/admin/standby/{a,dp}dump
$mkdir /u01/app/oracle/admin/standby/pfile
$mkdir /u01/app/oracle/archive/standby
$mkdir /u01/app/oracle/admin/standby
$mkdir /u01/app/oracle/admin/standby/{a,dp}dump
$mkdir /u01/app/oracle/admin/standby/pfile
$mkdir /u01/app/oracle/archive/standby
3)alter primary database ora11gr2 to archive log mode
4)alter primary database to force logging mode.
5)modified initial startup file in primary database
LOG_ARCHIVE_CONFIG = 'DG_CONFIG=(ora11gr2,standby)'
LOG_ARCHIVE_DEST_1 = 'LOCATION=/u01/app/oracle/archive/ora11gr2 VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=ora11gr2'
LOG_ARCHIVE_DEST_2 = 'SERVICE=standby ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=standby'
DB_FILE_NAME_CONVERT='ora11gr2','standby'
LOG_FILE_NAME_CONVERT='ora11gr2','standby'
FAL_CLIENT='ora11gr2'
FAL_SERVER='standby'
LOG_ARCHIVE_DEST_1 = 'LOCATION=/u01/app/oracle/archive/ora11gr2 VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=ora11gr2'
LOG_ARCHIVE_DEST_2 = 'SERVICE=standby ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=standby'
DB_FILE_NAME_CONVERT='ora11gr2','standby'
LOG_FILE_NAME_CONVERT='ora11gr2','standby'
FAL_CLIENT='ora11gr2'
FAL_SERVER='standby'
create a duplicate database using active database duplication in oracle 11g
[
2010/03/24 14:51 | by askwan ]
2010/03/24 14:51 | by askwan ]
active database duplication is a new feature in oracle 11g,it can duplicate a database without any preexisting backups to start the database duplication process.
this simple note is written by me to test this feature in the same host.
env:
IP:192.168.0.120
DB: Oracle 11g 11.2.0.1.0 for linux 64bit
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
Target Database instance name: ora11gr2
Duplicate database instance name: test1
STEP 1:configuration listener.ora in $ORACLE_HOME/network/admin
this simple note is written by me to test this feature in the same host.
env:
IP:192.168.0.120
DB: Oracle 11g 11.2.0.1.0 for linux 64bit
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
Target Database instance name: ora11gr2
Duplicate database instance name: test1
STEP 1:configuration listener.ora in $ORACLE_HOME/network/admin
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ora11gr2)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
(SID_NAME =ora11gr2)
)
(SID_DESC =
(GLOBAL_DBNAME = test1)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
(SID_NAME =test1)
)
)
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ora11gr2)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
(SID_NAME =ora11gr2)
)
(SID_DESC =
(GLOBAL_DBNAME = test1)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
(SID_NAME =test1)
)
)





