понедельник, 22 июня 2015 г.

Oracle VM Manager 3.3.* vmpinfo


[root@OracleVMmgmt ~]# cd /u01/app/oracle/ovm-manager-3/ovm_tools/support/

[root@OracleVMmgmt support]# ./vmpinfo3.sh --username=admin servers=oraclevm2,oraclevm1
Enter OVM Manager Password:

вторник, 21 апреля 2015 г.

Procedure to Change the Hostname of the Virtual Machine Oracle E-Business Suite, Release 12.2.4



1. Log in as the oracle user.

2. Source the runtime environment:
$ source  /u01/install/VISION/EBSapps.env Run

3. Execute the following command:
$ $INST_TOP/admin/scripts/adadminsrvctl.sh start

4. Execute the following command:
$ $INST_TOP/admin/scripts/adpreclone.pl appsTier

5. Source the patch environment in the patch file system:
$ source /u01/install/VISION/EBSapps.env Patch

6. Execute the following command:
$ $INST_TOP/admin/scripts/adadminsrvctl.sh start forcepatchfs

7. Execute the following command:
$ $INST_TOP/admin/scripts/adpreclone.pl appsTier

8. Execute the following command to stop the Oracle E-Business Suite application tier:
$ /u01/install/VISION/scripts/stopvisionapps.sh

9. Execute the following command to stop the Oracle E-Business Suite database tier:
$ /u01/install/VISION/scripts/stopvisiondb.sh

10. Execute either one of the following commands as the root user:
# /u01/install/scripts/configstatic.sh
Or
# /u01/install/scripts/configdhcp.sh

11. Execute the following command as the root user:
# /u01/install/VISION/scripts/visiondbconfig.sh

12. Execute the following command as the root user:
# /u01/install/VISION/scripts/visionappsconfig.sh

ps:

weblogic password - welcome1
apps password - apps

pss:

i got error

Target System Port Pool [0-99] : RC-00201: Error: Not a valid port pool number

понедельник, 2 февраля 2015 г.

Spacewalk tips

SERVER
Install the Spacewalk repository
rpm -Uvh http://yum.spacewalkproject.org/2.2/RHEL/6/x86_64/spacewalk-repo-2.2-1.el6.noarch.rpm
Install the following required additional repositories
cat > /etc/yum.repos.d/jpackage-generic.repo << EOF
[jpackage-generic]
name=JPackage generic
#baseurl=http://mirrors.dotsrc.org/pub/jpackage/5.0/generic/free/
mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=generic&type=free&release=5.0
enabled=1
gpgcheck=1
gpgkey=http://www.jpackage.org/jpackage.asc
EOF
Install EPEL
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Install spacewalk for postgresql
yum install spacewalk-setup-postgresql
yum install spacewalk-postgresql -y

CLIENT
Install the Spacewalk client yum repository
rpm -Uvh http://yum.spacewalkproject.org/2.2-client/RHEL/6/x86_64/spacewalk-client-repo-2.2-1.el6.noarch.rpm

Install client packages
    yum install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin

    Register your CentOS or Red Hat Enterprise Linux system to Spacewalk using the activation key you created earlier
     rhnreg_ks --serverUrl=http://spacewalk.core.kran/XMLRPC --activationkey=1-a7f734ebf3911f03e34f834376b34ab4

    yum install osad rhncfg rhncfg-actions rhncfg-client rhncfg-managemen
    Unregister
    rm -f /etc/sysconfig/rhn/systemid
    Oracle spacewalk client
    http://public-yum.oracle.com/repo/OracleLinux/OL6/spacewalk20/client/x86_64/getPackage/spacewalk-client-repo-2.0-3.el6.noarch.rpm

    Redhat spacewalk client
    rpm -ihv http://yum.spacewalkproject.org/2.2-client/RHEL/6/x86_64/spacewalk-client-repo-2.2-1.el6.noarch.rpm

    ##########
    service osad start
    Starting osad: Invalid Cert Error:

    ERROR: unhandled exception occurred: (Expired certificate /usr/share/rhn/RHNS-CA-CERT).

                                                               [FAILED]

    you need to grab your spacewalk server's ssl cert from the pub location (http://<your-server>/pub ) and put it under /usr/share/rhn on your client. Then modify the sslCACert=/usr/share/rhn/RHNS-CA-CERT field in /etc/sysconfig/rhn/up2date file to /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT.
    https://www.redhat.com/archives/spacewalk-list/2008-July/msg00271.html


    среда, 17 декабря 2014 г.

    oracle log location

    Release 11gR2
    $ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid_n
    $ORACLE_BASE=/u01/app/oracle
    $ORACLE_SID=tt

    export HOST=`hostname -s`

    ocssd
    tail -f $ORACLE_HOME/log/$HOST/cssd/ocssd.log
    tail -f  $ORACLE_HOME/log/$HOST/alert$HOST.log

    ohasd
    tail -f  $ORACLE_HOME/log/$HOST/ohasd/ohasd.log

    oraagent
    tail -f $ORACLE_HOME/log/$HOST/agent/ohasd/oraagent_oracle/oraagent_oracleOUT.log
    tail -f $ORACLE_HOME/log/$HOST/agent/ohasd/oraagent_oracle/oraagent_oracle.log

    cssdagent 
    tail -f $ORACLE_HOME/log/$HOST/agent/ohasd/oracssdagent_oracle/oracssdagent_oracle.log

    orarootagent
    $ORACLE_HOME/log/$HOST/agent/ohasd/orarootagent_oracle/orarootagent_oracle.log

    diskmon
    $ORACLE_HOME/log/$HOST/diskmon/client.log

    evmlogger 
    tail -f $ORACLE_HOME/evm/log/$HOST_evmlogger.log

    ALERT rdbms
    tail -f $ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID/trace/alert_$ORACLE_SID.log
    ALERT ASM 
    tail -f $ORACLE_BASE/diag/asm/+asm/$ORACLE_SID/trace/alert_$ORACLE_SID.log