Visit Counter

Monday, July 29, 2013

Uninstall Oracle 12c Database on Linux 6



Uninstall Oracle 12c DB


[oracle@test1 deinstall]$ pwd

Home Directory
/oracle12c/deinstall

[oracle@test1 deinstall]$ ls
bootstrap_files.lst  deinstall     deinstall.xml  readme.txt  sshUserSetup.sh
bootstrap.pl         deinstall.pl  jlib           response    utl

[oracle@test1 deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2013-07-29_10-59-41PM/logs/

############ ORACLE DEINSTALL & DECONFIG TOOL START ############


######################### CHECK OPERATION START #########################
## [START] Install check configuration ##


Checking for existence of the Oracle home location /oracle12c
Oracle Home type selected for deinstall is: Oracle Single Instance Database
Oracle Base selected for deinstall is: /home/oracle/app/oracle
Checking for existence of central inventory location /home/oracle/app/oraInventory
Checking for sufficient temp space availability on node(s) : 'test1'

## [END] Install check configuration ##


Network Configuration check config START

Network de-configuration trace file location: /tmp/deinstall2013-07-29_10-59-41PM/logs/netdc_check2013-07-29_11-00-54-PM.log

Specify all Single Instance listeners that are to be de-configured [LISTENER]:

Network Configuration check config END

Database Check Configuration START

Database de-configuration trace file location: /tmp/deinstall2013-07-29_10-59-41PM/logs/databasedc_check2013-07-29_11-03-24-PM.log

Use comma as separator when specifying list of values as input

Specify the list of database names that are configured in this Oracle home [ora12c]: 

    
###### For Database 'ora12c' ######

Single Instance Database
The diagnostic destination location of the database: /home/oracle/app/oracle/diag/rdbms/ora12c
Storage type used by the Database: FS
Database file location: /oracle12c/ora12c,/home/oracle/app/oracle/fast_recovery_area/ora12c
Fast recovery area location: /home/oracle/app/oracle/fast_recovery_area/ORA12C
database spfile location: /oracle12c/dbs/spfileora12c.ora

The details of database(s) ora12c have been discovered automatically. Do you still want to modify the details of ora12c database(s)? [n]: 
Database Check Configuration END
Oracle Configuration Manager check START
OCM check log file location : /tmp/deinstall2013-07-29_10-59-41PM/logs//ocm_check9779.log
Oracle Configuration Manager check END

######################### CHECK OPERATION END #########################


####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected for deinstall is: /oracle12c
Inventory Location where the Oracle home registered is: /home/oracle/app/oraInventory
Following Single Instance listener(s) will be de-configured: LISTENER
The following databases were selected for de-configuration : ora12c
Database unique name : ora12c
Storage used : FS
Checking the config status for CCR
Oracle Home exists with CCR directory, but CCR is not configured
CCR check is finished
oDo you want to continue (y - yes, n - no)? [n]:y  
A log of this session will be written to: '/tmp/deinstall2013-07-29_10-59-41PM/logs/deinstall_deconfig2013-07-29_11-00-51-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2013-07-29_10-59-41PM/logs/deinstall_deconfig2013-07-29_11-00-51-PM.err'

######################## CLEAN OPERATION START ########################
Database de-configuration trace file location: /tmp/deinstall2013-07-29_10-59-41PM/logs/databasedc_clean2013-07-29_11-04-46-PM.log
Database Clean Configuration START ora12c
This operation may take few minutes.
Database Clean Configuration END ora12c

Network Configuration clean config START

Network de-configuration trace file location: /tmp/deinstall2013-07-29_10-59-41PM/logs/netdc_clean2013-07-29_11-08-52-PM.log

De-configuring Single Instance listener(s): LISTENER

De-configuring listener: LISTENER
    Stopping listener: LISTENER
    Warning: Failed to stop listener. Listener may not be running.
    Deleting listener: LISTENER
    Listener deleted successfully.
Listener de-configured successfully.

De-configuring Naming Methods configuration file...
Naming Methods configuration file de-configured successfully.

De-configuring backup files...
Backup files de-configured successfully.

The network configuration has been cleaned up successfully.

Network Configuration clean config END

Oracle Configuration Manager clean START
OCM clean log file location : /tmp/deinstall2013-07-29_10-59-41PM/logs//ocm_clean9779.log
Oracle Configuration Manager clean END
Setting the force flag to false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START

Detach Oracle home '/oracle12c' from the central inventory on the local node : Done

Failed to delete the directory '/oracle12c'. The directory is in use.
Delete directory '/oracle12c' on the local node : Failed <<<<

Delete directory '/home/oracle/app/oraInventory' on the local node : Done

Delete directory '/home/oracle/app/oracle' on the local node : Done

Oracle Universal Installer cleanup was successful.

Oracle Universal Installer clean END


## [START] Oracle install clean ##

Clean install operation removing temporary directory '/tmp/deinstall2013-07-29_10-59-41PM' on node 'test1'

## [END] Oracle install clean ##


######################### CLEAN OPERATION END #########################


####################### CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : ora12c
Following Single Instance listener(s) were de-configured successfully: LISTENER
Cleaning the config for CCR
As CCR is not configured, so skipping the cleaning of CCR configuration
CCR clean is finished
Successfully detached Oracle home '/oracle12c' from the central inventory on the local node.
Failed to delete directory '/oracle12c' on the local node.
Successfully deleted directory '/home/oracle/app/oraInventory' on the local node.
Successfully deleted directory '/home/oracle/app/oracle' on the local node.
Oracle Universal Installer cleanup was successful.


Run 'rm -rf /etc/oraInst.loc' as root on node(s) 'test1' at the end of the session.

Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'test1' at the end of the session.
Run 'rm -rf /etc/oratab' as root on node(s) 'test1' at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################


############# ORACLE DEINSTALL & DECONFIG TOOL END #############

[oracle@test1 deinstall]$ 

Oracle Database 12c Release 1 (12.1) Installation On Oracle Linux 6


Download the following.

Oracle Virtual Machine
http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html#vbox

Oracle Linux 6
https://edelivery.oracle.com/EPD/Download/get_form?egroup_aru_number=13443339
Oracle Linux Release 6 Media Pack v1 for x86_64 (64 bit)

Oracle 12c Database



Unpack Files (Database Files)

# unzip linuxamd64_12c_database_1of2.zip
# unzip linuxamd64_12c_database_2of2.zip



Manual Setup

If you have not used the "oracle-rdbms-server-12cR1-preinstall" package to perform all prerequisites, you will need to manually perform the following setup tasks.
Add or amend the following lines in the "/etc/sysctl.conf" file.


fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500

Run the following command to change the current kernel parameters.


#/sbin/sysctl -p


Add the following lines to the "/etc/security/limits.conf" file.
oracle   soft   nofile    1024
oracle   hard   nofile    65536
oracle   soft   nproc    2047
oracle   hard   nproc    16384
oracle   soft   stack    10240
oracle   hard   stack    32768


























































Tuesday, July 16, 2013

Install / Uninstall Netbackup Client for Solaris 10



 Installation Netbackup  7.5 Client


root@afi-ssaerp2 # ls
Doc         LICENSE     NBClients   VSM_README  install
root@afi-ssaerp2 # ./install


Symantec Installation Script
Copyright 1993 - 2012 Symantec Corporation, All Rights Reserved.


        Installing NetBackup Client Software


Please review the SYMANTEC SOFTWARE LICENSE AGREEMENT located on
the installation media before proceeding.  The agreement includes
details on the NetBackup Product Improvement Program.

For NetBackup installation and upgrade information specific to your
platform and to find out if your installed EEBs or hot fixes are
contained in this release, check out the Symantec Operations Readiness
Tools (SORT) Installation and Upgrade Checklist and Hot fix and EEB
Release Auditor, respectively, at https://sort.symantec.com/netbackup.

Do you wish to continue? [y,n] (y)
Do you want to install the NetBackup client software for this client? [y,n] (y)

This package will install Solaris/Solaris10 client.

This package will install NetBackup client 7.5.

Enter the name of the NetBackup server : backupserver-baan

Would you like to use "afi-ssaerp2" as the configured
name of the NetBackup client? [y,n] (y)

Client binaries are located in /tmp/NetBackup_7.5_CLIENTS/NBClients/anb/Clients/ usr/openv/netbackup/client/Solaris/Solaris10.


NetBackup Deduplication software is incorrectly installed.
/etc/pdregistry.cfg was unexpectedly found.
Moving to /etc/pdregistry.cfg.2013-07-16_12:58 in order to continue.


Saving client binaries for Solaris/Solaris10.

Installing PBX...
A more up-to-date version is already installed. Nothing to upgrade for package VRTSpbx
Installation log located here: /var/tmp/installpbx-20395-071613125958.log


Unpacking SYMCnbclt package.
Checking for pre-existing SYMCnbclt package.
Removing pre-existing SYMCnbclt package.
Jul 16 13:01:16 afi-ssaerp2 sendmail[20576]: [ID 702911 mail.alert] unable to qualify my own domain name (afi-ssaerp2) -- using short name
Installing SYMCnbclt package.
Jul 16 13:02:49 afi-ssaerp2 sendmail[20618]: [ID 702911 mail.alert] unable to qualify my own domain name (afi-ssaerp2) -- using short name
Installation of SYMCnbclt was successful.
More details regarding SYMCnbclt can be found in file
/tmp/install_cltpkg_trace.20317 on afi-ssaerp2.

Terminating NetBackup and/or Media Manager processes.

Installing NB-Java.

Unpacking SYMCnbjava package.
Checking for pre-existing SYMCnbjava package.
Removing pre-existing SYMCnbjava package.
Jul 16 13:04:43 afi-ssaerp2 sendmail[21195]: [ID 702911 mail.alert] unable to qualify my own domain name (afi-ssaerp2) -- using short name
Installing SYMCnbjava package.
Jul 16 13:06:04 afi-ssaerp2 sendmail[21216]: [ID 702911 mail.alert] unable to qualify my own domain name (afi-ssaerp2) -- using short name
Installation of SYMCnbjava was successful.
More details regarding SYMCnbjava can be found in file
/tmp/install_javapkg_trace.21138 on afi-ssaerp2.

Unpacking SYMCnbjre package.
Checking for pre-existing SYMCnbjre package.
Removing pre-existing SYMCnbjre package.
Jul 16 13:07:15 afi-ssaerp2 sendmail[21269]: [ID 702911 mail.alert] unable to qualify my own domain name (afi-ssaerp2) -- using short name
Installing SYMCnbjre package.
Jul 16 13:08:25 afi-ssaerp2 sendmail[21290]: [ID 702911 mail.alert] unable to qualify my own domain name (afi-ssaerp2) -- using short name
Installation of SYMCnbjre was successful.
More details regarding SYMCnbjre can be found in file
/tmp/install_jrepkg_trace.21138 on afi-ssaerp2.
+ /bin/cp ./nbj.conf /usr/openv/java

Directory /usr/openv/logs does not exist.
No log files to migrate.

Checking network connections.
bp.conf: IP_ADDRESS_FAMILY = AF_INET: default value, no update needed

Send a SIGHUP to inetd or xinetd so the (x)inetd.conf file will be reread.
No previous install detected.  Performing a fresh install.
+ Extracting PDDE agent package (/tmp/NetBackup_7.5_CLIENTS/NBClients/anb/Clients/usr/openv/netbackup/client/Solaris/Solaris10/pddeagent.tar.gz)...
Using /tmp/pdde_pkg to store temporary package data.
Unpacking SYMCpddea package.
Checking for pre-existing SYMCpddea package.
Removing pre-existing SYMCpddea package.
Installing SYMCpddea package.
Creating /etc/pdregistry.cfg.
Saving a copy of the uninstall script to /opt/pdde/pddeuninstall.sh
Checking to see if the PDDE configuration needs upgrading
Agent config file path found: {/etc/puredisk/Agent.cfg}
Making changes to /usr/openv/lib/ost-plugins/pd.conf
RESTORE_DECRYPT_LOCAL already in pd.conf
PREFETCH_SIZE already in pd.conf
META_SEGKSIZE already in pd.conf
Making changes to /usr/openv/lib/ost-plugins/pd.conf
FIBRECHANNEL already in pd.conf

PDDE install finished successfully.
Version now installed:
7.0000.0012.0118
Full PDDE installation log saved to: /var/log/puredisk/2013-07-16_13:08-pdde-install.log


The following automatic startup and shutdown scripts (respectively)
have been installed.  They will cause the NetBackup daemons to be
automatically shut down and restarted each time the system boots.

/etc/rc2.d/S77netbackup
/etc/rc0.d/K01netbackup
/etc/rc1.d/K01netbackup


Successfully updated the session cache parameters.
Starting vnetd...
Starting bpcd...
Starting nbftclnt...
Starting bmrbd...

Installation of Java LiveUpdate agent succeeded.  Refer to file
/tmp/JLU-Log/JavaLiveUpdate-Install.log on afi-ssaerp2
for installation details.


Checking LiveUpdate registration for the following products: CLT
This may take a few minutes.

Product CLT is installed and will be registered.

Updating LiveUpdate registration now...this may take some time.



File /usr/openv/tmp/install_trace.20233 contains a trace of this install.
That file can be deleted after you are sure the install was successful.
you have mail
root@afi-ssaerp2 #



Uninstall Netbackup 7.5 Client on Solaris


root@afi-ssaerp2 # /usr/openv/netbackup/bin/bp.kill_all

No NB/MM daemons appear to be running.


root@afi-ssaerp2 # /usr/openv/netbackup/bin/vxlogcfg -r -p 51216
The configuration settings were removed successfully.


root@afi-ssaerp2 # /usr/openv/netbackup/bin/nblu_registration -r

Checking LiveUpdate registration for products to be removed.

Product CLT will be removed from registration.


Updating LiveUpdate registration now...this may take some time.

# cd /usr/openv

# rm -rf  *






Wednesday, July 10, 2013

Netbackup install files that end with 1of2 or 2of2



On Windows System:

C:\Users\test\Desktop\netbackup7.5>copy /b "NetBackup_7.5_Win_zip.1of2"

+ "NetBackup_7.5_Win_zip.2of2" "windowsclient7.5"


NetBackup_7.5_Win_zip.1of2
NetBackup_7.5_Win_zip.2of2
        1 file(s) copied.





 On UNIX systems:
   

# cat "NetBackup_7.5_CLIENTS_tar-gz.1of3" "NetBackup_7.5_CLIENTS_tar-gz.2of3"

"NetBackup_7.5_CLIENTS_tar-gz.3of3" > "NetBackup_7.5_CLIENTS.tar.gz"

Tuesday, July 9, 2013

How to use the NetBackup Catalog Consistency Utility (NBCC) 7.5.0.3



http://www.symantec.com/docs/TECH156730


extract to the following path

usr\openv\NetBackup\bin\support\7.5.0.3_nbcc\


and run the nbcc as per the processor bits.



root@ERP # ./NBCC

1.0  Gathering initial NBCC information
1.1  Obtaining initial NetBackup configuration information
       NBCC is being run on NetBackup master server
       backupserver-baan

2.0  Gathering required NetBackup configuration information

       If NBCC is unable to determine the NetBackup version for
       ANY detected media server, is there a SINGLE version of NetBackup
       that you would like associated to these media servers? [Y/y,N/n] y

       Please enter the NetBackup primary version number [6,7] 7

       If NBCC detects images that were written by media servers
       that are not known to NetBackup, would you like NBCC to:

       1.  Stop now, since I know of such media servers, and I wish to
           resolve these before running NBCC again

       2.  Prompt me again, after NBCC has processed all images, so
           that I can designate the media server that full analysis will
           use to INHERIT ALL of the image copies associated to the
           unknown media servers

       3.  Prompt me again, after NBCC has processed ALL images, so that I
           can select the course of action to take for EACH media server

       4.  Flag ALL of the unknown media servers so that full analysis will
           mark all of their related image copies to be EXPIRED

       5.  Flag ALL of the unknown media servers so that full analysis will
           generate COMMENTED out repairs that can be reviewed

       [1,2,3,4,5] 5
2.1  Determining the date format to use with NetBackup commands...
       Using the date format /mm/dd/yyyy
2.2  Building EMM host configuration information...
       Detected the EMM Server hostname
         backupserver-baan
       Detected the EMM master server hostname
         backupserver-baan
2.3  Obtaining EMM server aliases...
       EMM aliases for detected EMM Server
         backupserver-baan
       EMM aliases for detected master server
         backupserver-baan
2.4  Building NetBackup storage unit list...
       Detected tape media storage unit host
         backupserver-baan
       Detected disk media storage unit host
         backupserver-baan
2.5  Analyzing EMM master and/or media servers and configured
     Storage Units...
2.6  Obtaining NetBackup unrestricted media sharing status...
       Configuration state = NO
2.7  Obtaining NetBackup Media Server Groups...
       No Server Groups configured
2.8  Building NetBackup retention level list
3.0  Obtaining NetBackup version from media servers
       backupserver-baan...
3.1  Gathering required NetBackup catalog information
       Start time = 2013-07-09 10:34:31
3.2  Gathering NetBackup EMM conflict table list
       Found 0 EMM conflict records
3.3  Gathering list of all tapes associated with any Active Jobs
       Building NetBackup bpdbjobs list
       No active jobs found
3.4  Building NetBackup Image database contents list
       Found 664 images in the Image database
3.5  Unloading the NBDB database
       Reading the reload.sql file...
       Reading the Machine table file...
       Counting the number of records in the Image table file...
           Found 0 records.
       Counting the number of records in the Image Copy table file...
           Found 0 records.
       Counting the number of records in the Image Fragments table file...
           Found 0 records.
       Relocating the unloaded NBDB database files...
3.6  Building EMM database Media and Device configuration
     attribute lists
       Obtaining the EMM database Media attribute list for tape
       master server
         backupserver-baan ...
         There were 69 bpmedialist records detected for media server
           backupserver-baan
           Getting device configuration data from server
             backupserver-baan ...
         Found 69 media records in the EMM database
3.7  Building EMM database Unrestricted Sharing media attribute lists
         Found 0 Unrestricted Sharing media records in the EMM database
3.8  Building the EMM database Volume attribute list...
       Getting the EMM database Volume attributes from EMM server
         backupserver-baan ...
       Found 108 Volume attribute records in the EMM database
3.9  Building NetBackup volume pool configuration list
       EMM Server backupserver-baan
3.10  Building NetBackup scratch pool configuration list
       EMM Server backupserver-baan
3.11  Gathering NetBackup EMM merge table list
       Found 0 EMM merge table records

       Catalog data gathering took 25 seconds to complete.

4.0  Verifying required catalog components were gathered

5.0  Beginning NetBackup catalog consistency check
       Start time = 2013-07-09 10:34:56
5.1  There were no tape media involved in active NetBackup jobs
5.3  Processing EMM database Volume attribute records, pass 1 (of 2),
       108 records to be processed
       Processed 87 EMM database Volume attribute records.
5.4  NetBackup catalog consistency check completed
       End time = 2013-07-09 10:34:56
5.5  Checking for the latest NBCCR repair output directory
       /usr/openv/netbackup/bin/support/output/nbccr
       No repair file output directory detected.


     ***NBCC DETECTED A NetBackup CATALOG INCONSISTENCY!***

6.1  Preparing to create support package...

6.2  Analyzing available bundling programs...
       Utilizing tar
       Utilizing gzip
6.3  Identifying output files to include in support package...
6.4  Analyzing disk usage...
6.5  Using tar to create the support package
     backupserver-baan_NBCC_20130709_103416.tar
6.6  Cleaning up output files...
6.7  Compressing the backupserver-baan_NBCC_20130709_103416.tar support package using gzip...

       NBCC has successfully created a support package named
         backupserver-baan_NBCC_20130709_103416.tar.gz
       This file is located in the directory
         ./output/nbcc/backupserver-baan_NBCC_20130709_103416
       Please deliver it to Symantec NetBackup Support for analysis.

root@ERP #