Oracle Weblogic 12c
Oracle Weblogic 12c (12.1.1) Generic Installer x64 on CentOS 6 This post will cover installing Oracle Weblogic 12c (12.1.1) Generic Installer x64 (wls1211_generic.jar) on 64 bit CentOS 6 for evaluation. Before investing any time in this, despite a fresh download you will need,.... a patch: (p13606167_12110_Generic.zip).ツ I am installing this remotely, if you are doing the same, you can see my post onツVNC on CentOS 6 If not, the proceedure is identical. Step 1. Create the user who will own WLS
Create a user 'oracle' and group dba.
Step 2. Download jdk-7u5-linux-x64.tar.gz and Install.
Oracle recommends JRockit for Production Mode and JDK 1.7 for Development Mode. Start by making a home for JAVA. Ill create mine under /usr/java
Download jdk-7u5-linux-x64.tar.gz to the /usr/java directory
Extract it:
This will create a directory, jdk.17.0_05 under /usr/java:
This will be our JAVA_HOME: /usr/java/jdk1.7.0_05 (You can now remove jdk-7u5-linux-x64.tar.gz using rm -f jdk-7u5-linux-x64.tar.gz). ツ 3. Put JAVA into the path of user oracle.
Add the following to bash profile for user oracle
Make it available now:
4. Check Java is in oracle's path:
Switch to the user oracle and verify that Java is now in the path of oracle by issuing 'java -version'
5. Make a home for Weblogic
Make the user oracle the owner:
6. Download wls1211_generic.jar
Download wls1211_generic.jar from either of these locations: http://www.oracle.com/technetwork/middleware/ias/downloads/wls-main-097127.html http://www.oracle.com/technetwork/middleware/weblogic/downloads/index.htm ツ 7. Install wls1211_generic.jar
Here is the short version: 1. su - oracle 2. Go to the location where you donwnloaded wls1211_generic.jar (I've downloaded it to /home) 3. Issue:ツ
Important: if you do not set PermSize as well as Xmx, your install will fail with Out of Memory errors.
My apologies for the quality and (lack of) editing of the video; it's my first video using demo-builder.ツ If you expand the video to full screen mode you will be able to see the terminal (sort of).ツ ツ Part I Install wls1211_generic.jar:
ツ ツ Part II Create a domain and Admin user credentials:
ツ ツ Patch
As you can see from Part II, once we started the domain, we ran into: WARNING: Input Action on WSDL operation AbortedOperation and @Action on its associated Web Method abortedOperation did not match and will cause problems in dispatching the requests This required us to install p13606167_12110_Generic.zip as shown in the video In the video, I installed it on offline mode. To see how to apply in online mode, see:ツhttp://weblogic-wonders.com/weblogic/2010/12/03/methods-to-apply-patches-in-weblogic-server/ Starting the Domain
As shown above, we start the domain by going to the domain's directory and issuing './startWebLogic.sh'
Start it :
I hope this was helpul..... http://docs.oracle.com/cd/E24329_01/doc.1211/e24492/prepare.htm#BABFIDAB ツ This post will cover basic installation and configuration of Oracle 11g Express Edition (XE) on CentOS. We will also take a quick look at configuring Application Express (APEX) for 11g XE. Basic installation is straight forward. If you just want to get up and running, you can just do steps 1 to 4 below (and 10 and 11 for Apex). The remaining steps (5 to 9) cover basic backup, recovery, and performance configuration. The full system requirements areツhere
On every CentOS installation I have done for XE, I just needed to update/install the packages for libaio, bc, and flex.
Step 1: Download and Install Oracle 11g XE rpm
Unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip:
This will create the directory Disk1. Change to the Disk1 directory:
Install the rpm using rpm -ivh oracle-xe-11.2.0-1.0.x86_64.rpm
Step 2: Configure 11g XE Database and Options
Unless you wish to change the ports, except the defaults and set SYS/SYSTEM password.ツ
The installation created the directory /u01 under which Oracle XE is installed. ツ Step 3: Set the Environment
To set the environment for your current session run '. ./oracle_env.sh':
To set the environment permanently for users, add the following to the .bashrc or .bash_profile of the users you want to access the environment:
You should now be able to access SQL*Plus
ツ Step 4: Allow Remote Access to Oracle 11g XE GUI
You should now be able to access the Oracle 11g XE Home Page GUI at: http://localhost:8080/apex/f?p=4950:1 Replace localhost above with your IP or domain as required. Log in as SYSTEM using the password you selected in Step 2 above. ツ Step 5: Move the Flash Recovery Area (Fast Recovery Area)
This is actually now called the Fast Recovery Area, but the existing documentation still refers to it as the Flash Recovery Area If a separate disk is not in your budget you should, at the very least, move the Flash Recovery Area to a partition other than the Oracle installation directory. By default, the Fast Recovery Area will be located under /u01/app/oracle/fast_recovery_area
Change the owner to oracle and the group to dbaツ
Now, change the DB_RECOVERY_FILE_DEST to the location you selected above.
Now, set an appropriate size for the Fast Recovery Area. Use df -h to insure that there is ample space.
Verify the new location and size.ツ
Step 6: Add Redo Log Members to Groups
Additionally, the members should be spread across disks (or at least directories) For whatever reason, only one member is created per group on install. You can view the redo log files using SQL> SELECT * FROM V$LOGFILE; Since the default location for the two members is the Flash Recovery Area, the two existing members have been moved to our new FRA. You should now add an additional member for each group under /u01/app/oracle/oradata/XE
ツ Step 7: Set Sessions and Processes Parameters
You can increase these parameters. After each change, you will need to restart the database. Increase sessions and then bounce database.
Verify change to sessions parameter:
Increase processes and restart database
Verify change to processes parameter:
ツ Step 8: Enable Archivelog Mode
Additionally, if you do not enable Archivelog Mode and take only offline or "cold" backups, should you need to restore the database you will only be able to restore to the last backup To enable Archivelog Mode, shutdown the database and then startup mount:
Enable Archivelog Mode
Open the database and verify that Archivelog Mode is enabled
ツ Step 9: Create Online Backup Script
Create a directory for your backup script
Change the owner to oracle and the group to dbaツ
Copy the backup.sh script from /u01/app/oracle/product/11.2.0/xe/config/scripts to the directory you created above.
Open the backup.sh script in a text editor or vi. The last section will look like this:
Change it to:ツ
The line we added above, mail -s 'Oracle Backup Completed' ' This email address is being protected from spambots. You need JavaScript enabled to view it. ' < /u01/app/oracle/oxe_backup_current.log, will send us an email notification that the backup has completed as well as cat the backup log to the body of the email. Note that we have also commented out the last two lines of the script (the prompt).ツ Create a cron job to run the script as user oracle. You should run it at least once a day. With Archivelog Mode enabled, it is important that backups be taken regularly to prevent the Flash Recovery Area from filling.ツ ツ Step 10: Oracle 11g XE and Application Express (APEX)
If you elect to upgrade to the latest version (4.1 as of this writing), you can do so but will loose access to the XE GUI. Not a huge loss, but something to keep in mind. Although Apex is already installed, you will need to set the Internal Admin password. To do so, run the apxchpwd.sql located under /u01/app/oracle/product/11.2.0/xe/apex: Note: pick something simple like Password123! as you will be prompted to change it on first log in anyways.
You can access the Application Express GUI at: http://localhost:8080/apex/f?p=4550:1 Replace localhost above with your IP or domain as required. Workspace: Internal Alternatively, you can access viaツ http://localhost:8080/apex/f?p=4550:10 or http://localhost:8080/apex/apex_admin Again, replace localhost above with your IP or domain as required. ツ Step 11: Oracle 11g XE: Configure EPG or Apex Listener
The Application Express that comes installed with Oracle 11g XE is configured using the EPG. While the EPG is simpler than Apex Listener, it can be painfully slow as of Apex 3.2.ツ Apex Listener, while quite fast, adds an extra layer of complexity.ツ You will need to install an application server to run Apex Listener. I have run Apex Listener on both Tomcat (unsupported) as well as Oracle GlassFish 3.x (supported) and was not impressed with either. A lot of people who know far more than I do about APEX (read: 99.9999% of the population) like the Apex Listener. Apex Listener and it's installation guide can be foundツhere. The Apex Listener installation guide is well done and simple to follow. If you need to install Oracle GlassFish or GlassFish CE (basic installation is the same), you can use my GlassFish 3.1 instructionshere. If you want to be an outlaw and use Tomcat, you can use my Tomcat 6 installation guideツhere.ツor my Tomcat 7 installation guideツhere.. ツ Red Hat Linux 5.4 or CentOS 5.4 Oracle 11g or 10g SID = orcl This post covers creating a basic bash script to produce a Data Pump export file (.dmp) file which we can then FTP to a remote server or mail the file using MUTT. We'll also generate a log file of the export and write the output of the log file into the body of an email notification. In the first scenario, we want to email the export file as an attachment, so we''ll need to do the following:
email. I'm creating mine in /usr/lib/myscripts and the file name will be scottscript.sh
In the first part of the script, we set the required environment.
In the next bit, we do our export. In this case, I want to import my file into a local XE instance on my laptop so I'm going to specify
VERSION=10.2. Additionally, because I will be doing this daily, I am appending the date in the form of YYYYMMDDHH to the file name:
ツ
Create a log file of our export to see if there were any issues:
Compress the .dmp file to make it easier to mail:
ツ
Finally, we use MUTT to attach our export file to our email as well as write the log file contents to the body of the email:
ツ
ツ
In the last bit above:
Now, instead of emailing the zip file, let's FTP the file to a remote server.ツIn this case, we want to FTP the file, so we'll need to do the following:
In the first part of the script, we set the required environment.
In the next bit, we do our export. Again, I want to import my file into a local XE instance on my laptop so I'm going to specify
VERSION=10.2. Additionally, because I will be doing this daily, I am appending the date in the form of YYYYMMDDHH to the file name:
ツ
Create a log file of our export to see if there were any issues:
Compress the .dmp file to make it easier to FTP:
ツ
Now, we use MUTT to write the log file contents to the body of an email notification:
ツ
ツ
In the bit above:
What if I want to use tar/gzip instead of zip?ツSimply make the substitutions as below:
ツ
ツ
Latest Articles
![]() Search ArticlesWho's OnlineWe have 72 guests and no members online Articel Comments
Articles Most Read
Category Database
|
Comments
email subscription link or e-newsletter service.
Do you've any? Please allow me realize in order that I could
subscribe. Thanks.
Here is my web site - binary share trading - www.youtube.com,
RSS feed for comments to this post