ORA-02289 While ore.sync() in Oracle R Enterprise
6/08/2012 07:24:00 PM
Gönderen Mete Karar
After connecting to your Oracle database through R console and run the command ore.sync, you may have faced with:
error. If you trace queries running while the sync command is in progress, you will see the one below:
CREATE PUBLIC SYNONYM RQ$OBJECT_SEQ FOR RQSYS.RQ$OBJECT_SEQ;
Adding New Disks to an Existing ASM Disk Group
5/18/2012 06:23:00 PM
Gönderen Mete Karar
When the free disk space level starts getting lower and lower, it is time to add disk(s) to feed your database. Most likely and advisable, your database is running on ASM (Automatic Storage Management) which provides abstraction over physical disks perfectly. Here are the steps of adding new disks:
1. Add new disks to your server physically. Assuming your database is running on a server class system or as a virtual machine, it is possible to add disks without shutting down the server through SCSI interface either way.
2. Force Linux to discover new disks without need to reboot:
$ echo "- - -" > /sys/class/scsi_host/host0/scan
$ fdisk -l
$ ls /dev/sd*
3. Create a partition on each newly discovered disks:
4. Mark each disk as ASM disks:
5. To add disks to a ASM disk group, as oracle run asmca tool.
Right click the disk group to be expanded and select "Add Disks"
Select disk(s) to add from the eligible disks list and click OK. When you return the first screen notice that free space is increased.
Configuring SQL Server Plug-in for OMS 12c
5/14/2012 06:17:00 PM
Gönderen Mete Karar
- "View any database", "View any definition" and "View any database" on server
- Public role in each database, except master and tempdb, since public server role covers necessary access to them. Since login is added to model database, newly created databases from now on will also include this grant.
- Execute on msdb.dbo.sp_help_job stored procedure.
Oracle Database Network Bandwidth Usage
4/29/2012 03:25:00 PM
Gönderen Mete Karar
(
select sysdate, max(value) as max_val, avg(value) as avg_val
from gv$sysmetric_history
The formulation to calculate bandwidth is:
Required bandwidth = ((Redo rate bytes per sec. / 0.7) * 8) / 1,000,000 = bandwidth in Mbps
Since you have collected enough data, you can figure out the peak and average bandwidth:
from bandwidth;
Upgrading Oracle Enterprise Manager 11g Grid Control to 12c Cloud Control with Exadata Plug-ins
4/26/2012 06:21:00 PM
Gönderen Mete Karar
Upgrading 11g Grid Control to 12c Cloud Control with 1-System Upgrade Approach:
$ unzip p6880880_111000_Linux-x86-64.zip -d <OMS_HOME>/
$ unzip p10065631_111010_Generic.zip
$ <OMS_HOME>/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ./10065631
If no conflict is found
$ <OMS_HOME>/bin/emctl stop oms
$ cd 10065631
$ <OMS_HOME>/OPatch/opatch apply
$ export ORACLE_HOME=<OMS_HOME>
$ <OMS_HOME>/bin/rcuJDBCEngine sys/<Password>@<host_name>:<db_sid> JDBC_SCRIPT post_install_script.sql $PWD $ORACLE_HOME
$ <OMS_HOME>/bin/rcuJDBCEngine sys/<Password>@s<host_name>:<db_sid> JDBC_SCRIPT post_install_pactht.sql $PWD $ORACLE_HOME
$ <OMS_HOME>/bin/emctl start oms
3. Now we can install preupgrade patch. You can download it from OTN.
$ unzip p13597150_111010_Generic.zip
$ <OMS_HOME>/bin/emctl stop oms
$ <OMS_HOME>/bin/emctl start oms
$ cd 13597150
$ <OMS_HOME>/OPatch/opatch apply
$ <OMS_HOME>/bin/rcuJDBCEngine sys/<Password>@<host_name>:<db_sid> JDBC_SCRIPT $ORACLE_HOME/sysman/preupgc/puc_dblink_pkgdef.sql
$ <OMS_HOME>/bin/rcuJDBCEngine sys/<Password>@<host_name>:<db_sid> JDBC_SCRIPT $ORACLE_HOME/sysman/preupgc/puc_dblink_pkgbody.sql
$ <OMS_HOME>/bin/rcuJDBCEngine sysman/<Password>@<host_name>:<db_sid> JDBC_SCRIPT $ORACLE_HOME/sysman/preupgc/pre_upg_console.sql
$ <OMS_HOME>/bin/emctl start oms
When you click on validate a job will run and analyze your agent(s). Your agent(s) might fall into one of these groups:
- Completely Upgradable - A non-windows agent with no or upgradable plugins.
- Missing Plug-Ins Software - A non-windows agent with not upgradable plugins. My agents falls in this category since it is a Linux agent with Exadata plugins. Starting from 12c, Exadata features are included in OEM, so no plugin is required.
- Missing Agent Software - Agent software is not available
- Not Supported - A Windows agent
5. After verifying agent(s), upgrade them by following steps below described in Oracle documentation. First three steps will create a job, you can find job output screen in each step:
a) Deploy and configure the software binaries of Oracle Management Agent 12c
b) Generate a health report and check the readiness of the predeployed Management Agents
c) Verify and sign off the health check report
d) Switch over the old Management Agents to the newly deployed ones so that they can communicate with Enterprise Manager Cloud Control
Check the status of upgraded agent:
---------------------------------------------------------------
Agent Version : 12.1.0.1.0
OMS Version : (unknown)
Protocol Version : 12.1.0.1.0
Agent Home : <AGENT12c_HOME>/agent_inst
Agent Binaries : <AGENT12c_HOME>/core/12.1.0.1.0
Agent Process ID : 19089
Parent Process ID : 18963
Agent URL : https://<host>:3872/emd/main/
Repository URL : https://<host>:4900/empbs/upload
Started at :
Last Reload : (none)
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload : 69
Size of XML files pending upload(MB) : 0.07
Available disk space on upload filesystem : 21.46%
Collection Status : Collections enabled
Last attempted heartbeat to OMS :
---------------------------------------------------------------
Agent is Running and Ready
$ <OMS_HOME>/bin/emctl stop oms
$ ./runInstaller
Run the root script when prompted for
You may now log on to new OMS Console.
Discovering Exadata Through 12c
OMS_LOCATION = MY_GC
EM_BASE = / u01/app/embase
OMS_HOST = oemserver.company.com
OMS_PORT = 4900
EM_USER=oracle
EM_PASSWORD=<password>
Do check the port number by running following command on OEM server:
To install agent, as root:
Installing Oracle R Enterprise
3/20/2012 07:02:00 PM
Gönderen Mete Karar
Oracle has integrated popular statistical package R as a component of database's Advanced Analytics Option. Oracle R Enterprise comes with Big Data integrated too. It also can be installed separately to 11 R2 databases on Oracle Linux 5 64-bit and naturally to Exadata. I'll try to briefly explain how you can install it.
Prerequites:
1. If not already enabled, enable yum repos for Oracle. You can find out how from Oracle public yum site.
2. Install R
$ yum install R.x86_64
Installing Client on Windows:
1. Next thing to be done is installing client tool. Download R for Windows from R Project and install it.
2. Download Oracle R Enterprise Client Packages and Client Supporting Packages for Windows from OTN and unzip them.
3. To install packages; run R from All Programs as administrator, from the menu: Packages -> Install package(s) from local zip files:
a. Navigate to <unzip_dir>\ore-supporting-windows-1.0\bin\windows\contrib\2.13
b. Select; DBI_0.2-5.zip, png_0.1-4.zip and ROracle_1.1-1.zip
c. Click open:
package 'DBI' successfully unpacked and MD5 sums checked
package 'png' successfully unpacked and MD5 sums checked
package 'ROracle' successfully unpacked and MD5 sums checked
d. Repeat the step for client packages. Navigate to <unzip_dir>\ore-windows-1.0\bin\windows\contrib\2.13
e. Select; ORE_1.0.zip, OREbase_1.0.zip, OREeda_1.0.zip, OREgraphics_1.0.zip, OREstats_1.0.zip, ORExml_1.0.zip
f. Click open:
package 'ORE' successfully unpacked and MD5 sums checked
package 'OREbase' successfully unpacked and MD5 sums checked
package 'OREeda' successfully unpacked and MD5 sums checked
package 'OREgraphics' successfully unpacked and MD5 sums checked
package 'OREstats' successfully unpacked and MD5 sums checked
package 'ORExml' successfully unpacked and MD5 sums checked
Installing Server:
1. To install server download ore-server-linux-x86-64-1.0.zip from OTN.
2. Extract files
$ tar xzf ore-server-linux-x86-64-1.0.tar.gz
$ export R_HOME=/usr/lib64/R
$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
4. Install
$ cd ore-server-linux-x86-64-1.0/
$ ./install.sh
5. Enable R for the user:
SQL> grant rqrole to <user_name>
To connect your database through R run R client:
R> ore.connect(user="<user_name>", sid="<DB_SID>", host="<host_name>", password="<password>", port = 1521)
R> ore.sync
R> ore.attach()
R> ore.ls()
R> help(Startup)
Core Dumps After Upgrading Grid Infrastructure to 11.2.0.2
3/13/2012 11:52:00 AM
Gönderen Mete Karar
After upgrading Grid Infrastructure from 11.2.0.1 to 11.2.0.2 on a single instance, you may observe huge amount of increase in disk usage due to core dump creation. You will see that a directory named like core_123 created every 10 minutes in <Grid_Home>/log/<host_name>/diskmon.
There is a bug numbered 10283819 in MOS considers the problem , however no workaround is provided. There are two ways you can follow to handle situation. First one is upgrading to 11.2.0.3. And the other one is uninstalling 11.2.0.1 completely, even remove the empty home, and restart all Oracle services.


















