Upgrading from 9,2.0.6 (HP-UX) to 10g or 11g on Redhat Linux?
Generally what are the steps to upgrade from 9,2.0.6 (HP-UX) to 10g or 11g on Redhat Linux?
Can I exp the database on 9.2.0.6 (HP-UX) then imp the database to a new 10/11g database (RedHat Linux)?
Is this the simplest way?
To change platforms require the database instance be re-built and / or the data moved using one of the following methods:
Export / Import to include the use of Datapump facilities. all versions support Export/Import but for Datapump 10.1.0.2 or higher is required
Transportable Tablespaces 10G or Later
RMAN Convert Database functions. 10G or Later
Streams Replication
Create Table As Select (CTAS)
Oracle Golden Gate
As your database is 9.2.0.6 you can only use export/import. Please refer to the MOS doc 733205.1 for further clarification
Similar Messages
-
Upgrade from 11i to r12 application servers with Discoverer 10g
Hello, one and all.
I have recently upgraded from 11i to r12 Oracle financial application server, after much patching and testing we finally came to the Discoverer application server.
Most workbooks open fine, however it seems that some of them (about 3%) reference columns that no longer exist in r12, for example, SET_Of_BOOKS_ID has become LEDGER_ID in r12 on the gl.gl_je_lines table.
This causes any workbook that references that business area to return an error 'Database Error - ORA-00904: " O974567"."SET_OF_BOOKS_ID": invalid identifier.
Well and good; I think that that's caused by the EUL not being refreshed after the upgrade, so I go to the Discoverer administrator and refresh the general ledger Business area. This unfortunately renames several objects inside the business area, including SET_OF_BOOKS_ID to LEDGER_ID, so instead of that error, we now get several 'Missing item or condition' errors until the workbook will not open at all with an 'Item dependency "" not found in the EUL.' error. This i assume is because the workbooks still reference the old items.
I'm guessing that several Business areas and objects therein have been renamed since nearly none of the workbooks will open now. I have restored the EUL from a backup (imported all the *.eex files) however I was wondering if anyone had faced this issue.
I apologize as I have very little understanding of Discoverer and this might be a simple fix, but I'm at this point willing to try anything for help.
Thanks!user8612301 wrote:
Hi Srini
Srini,
To understand your above reply,
You say that
1) If they are based on 11i Discoverer EUL and Folders then export EUL And WorkBooks and Import them
into R12 Discoverer Environment..Refresh the EUL..So ORACLE will take care of the changes like 11i SOB vs R12 Ledegrs??Pl open a SR with Support on what to do with seeded EUL as part of this upgrade - I suspect you will need to import the R12 EUL as part of this upgrade.
>
2) If they are Custom SQL reports from 11i then just RECREATE them from SCRATCH..Correct - after you verify that they are changed to reflect the R12 data model
>
Am I right?
thanks
kp
Edited by: user8612301 on Apr 20, 2011 8:57 AMSrini -
Migration upgrade from albpm 5.7 to 6.5/Oracle 10g
Hi !
We need to upgrade our current ALBPM bpm 5.7 deployment into portal 6.0, to Oracle 10g/bpm6.5.
1) Does this need to be a two step process. Upgrage from 5.7 to 6.0 and then again from 6.0 to Oracle10g/BPM6.5?
2) Is there any documentation regarding upgrade from ALBPM 5.7 to Oracle 10g or from ALBPM 6.0 to Oracle 10g?
3) What is the portal version supported with ALBPM 6.5/Oracle 10g? Will ALBPM 6.5/Oracle 10g run on Portal 6.1 ?
If anybody has any upgrade experience or can point any ALBPM upgrade related doc.
Please respond.
Thanks and regards
ManojManoj,
Currently the upgrade process is from one version to its direct following version. We are looking forward to implement a straight migration from ALBPM 5.7 to Oracle BPM 10gR3, but this does not have a firm timeline yet. If you are urged to migrate, you will need to first migrate from ALBPM 5.7 to ALBPM 6.0 and then from ALBPM 6.0 to OBPM 10gR3. If you are only migrating your project source code without in flight instance migration, you may want to attempt the export of your projects in ALBPM 5.7 and then import them directly into OBPM 10gR3.
As per the migration documentation, you may want to check in the eDocs for ALBPM 6.0 and OTN for OBPM 10gR3.
eduardoc. -
Apex upgrade from 3.2 to 4.0 in Oracle 10g Enterprise Edition
Hi Friends,
I am currenly using Apex version 3.2.1. My oracle version is "Oracle Database 10g Enterprise Edition Release 10.2.0.4.0".
I am planning to upgrade my apex version to 4.0. Can i do this with the same oracle DB version. Is there any specific
licence needed for such an upgrade?
Regards,
NavCan i do this with the same oracle DB version.Yes. 10.2.0.4.0 meets the documented requirements.
Is there any specific licence needed for such an upgrade?No, not if the database is licensed. (Additional licenses may be required for some web server configurations.) -
LDAP synch not supported during OIM upgrade from 9.x to 11g
Hi Experts,
Following line is mentioned in OIM upgrade guide for 9.x to 11g (http://docs.oracle.com/cd/E21764_01/upgrade.1111/e10129/upgrade_oim.htm)
“LDAP Sync is not supported when you upgrade from Oracle Identity Management 9.1 to Oracle Identity Management 11g”
Please help me in understanding the above line.
I have a pretty simple setup of OIM (version 9.1.0.2) with AD and Exchange connected. I guess I don't have any impact of above line.
LDAP synch is required when we integrate oracle identity manager with oracle access manager.
Please suggest.
Thanks
M SYes LDAP Sync has most of the features when you have OIM and OAM integrated with each other. You can go ahead with upgrade if LDAP Sync is not part of your requirement.
-
Upgrade from 46B to ECC 6.0
I'm planning to do an upgrade from 46B oracle 9i to ECC 6 oracle 10g.
Is there someone who did it whith those version.
I was wondering, do I have to apply all the sp from 46b before migrating to ECC 6?
Somebody could help me?
ThanksHi,
You need to follow the steps carefully.
You first need to upgrade Oracle to 10g and then you need to upgrade your kernel to 46D_ext from 46D as 46D_ext ortace libraries support oracle 10g libraries and hence need to be very careful.
You can follow certain notes like :
SAPNote 932722 - Upgrade to Oracle 10.2 during a database copy
SAPNote 976457 - Oracle 10g Support on Windows: 4.6D-Based SAP Systems
Once you upgrade oracle and are able to start and work on SAP system (with Oracle 10.2.0.2 and 46D_ext kernel) then you can start the upgrade.
Rest of the upgrade is similar to a normal upgrade.
Regards,
Suhas -
I recently upgraded from 3Gs to Iphone4 and want to use my old 3Gs as an ipod. how can i update
the user ID on the 3gs to a new one that I have as it is still showing a previous user ID?Settings>Store...tap the ID shown...sign out...sign back in with the ID you want to use.
-
Is it really possible to upgrade from a Treo 650 to a Treo 750?
I am not a very happy customer at the moment, but any help would be greatly appreciated. I upgraded from my old Palm Tungsten to a Zire, then to a Cingular Treo 650, combining three devices into one. I have since discovered that the Treo 650 seems to have a faulty transmission mode, as I can rarely be clearly understood by whomever I call. Am on the second (or third, I have lost track) and continue to have the same problem. I get five bars of reception but can't be understood on the other end. A bit of a problem when one is trying to call 911. Am constantly told I am "breaking up". The repair shop says it "Can't duplicate the problem". OK, then I do not want to give up all the info I have stored in the fool thing, and the 750 seems to have a different system, so I thought I would try that. All the stuff I could find seemed to indicate it wouldn't be a problem to upgrade. When the 750 arrived, I tried to install the software from the CD on my Windows XP computer. No dice. Setup encounters an error and closes. Can't even look at the files, because setup tries to run any time I access the CD. From any drive. Gave it to my girlfiend to check on her computer, and the CD seemed to run fine. Other CDs work just fine on my computer. Must be some kind of conflict, but what? Tried calling the AT&T number that suggested they could help with setup, and was first connected to the business center, they routed me to the laptop center, who routed me to the network center, who said they would have to bring in the Palm customer service and connected me to a Mac guy that dumped me back to a menu that took me to someone for whom English is a second language with whom I was trying to communicate over a very poor satellite connection. They made no sense anyway. telling me first that I couldn't have two desktops running (wrong, my girlfriend has my old Zire and the CD worked fine) and then insisting that the serial number on my device had to start with a P, when it clearly does not have any alpha characters in it. Gave up on that route of assistance. Managed to get the new ActiveSync installed from my girlfriends computer over the network. Great. Now let's get my 650 synced with Outlook (which I have not used at home) and see if we can move on. Nope. First I have to update Outlook 2000 from the old Win98 to my current XP. Find the old CD, and square that away. OK, now sync to Outlook. Nope. The sync program gives an error, saying it will only sync with Outlook 98, 2000, and XP(2002). Good grief. I have Outlook 2000, and the software apparently does not recognize it. If the Palm doesn't work, there is no reason for me to keep this phone, and I am very close to returning it and abandoning the Palm entirely when I upgrade to something that works, although I dread re-entering all that information.
Post relates to: Treo 750 (AT&T)
This question was solved.
View Solution.Thanks for the feedback. Today I installed an Enterprise version of Office 2007 I purchased a while back, but had not yet installed. Microsoft presented a few challenges, but they were quickly resolved. I then downloaded the appropriate conduit from Palm, and synced the 650 with the handheld overwriting the computer. Then used Active Destop to sync the 750. Satisfied I had moved as much info as possible, I called AT&T and had them move the phone number to the new Treo.
Bonus! When the guy at AT&T called me on the new phone to verify it, he said it sounded better than my landline.
Sorry for the streaming paragraph. When it is late I tend to write like I think.
Dave
Post relates to: Treo 750 (AT&T) -
I upgraded from iPhone 3GS to iPhone 6. Everything converted fine. Yesterday I deleted an app in error. When I downloaded the software it from iTunes ( did this many times on the old 3GS), my account is no longer recognized by the app's host servers (Playtika), even though it did after the initial conversion. Can I go back and re-sync just one app from my old phone?
Try deleting what is called the iPod Photo Cache.
http://support.apple.com/kb/TS1314 -
I Have downloaded the upgrade from Mountain Lion to Yosemite. In thee process of so doing I have lost access to iTunes.
The app on desktop no longer opens the program and having downloaded and installed as per Apple instructions, can not make a connection.Hi, drjbuchanan.
Thank you for visiting Apple Support Communities.
Here are some troubleshooting steps that I would recommend going through when experiencing this issue.
iTunes: Troubleshooting issues with third-party iTunes plug-ins
http://support.apple.com/en-us/ts3430
Troubleshooting iTunes installation on Mac OS X
http://support.apple.com/en-us/ht2311
Cheers,
Jason H. -
Can't print from IE 8 after upgrading from Vista to Windows 7
My laptop (HP Elitebook 8530w) uses two HP printers: Color LaserJet CP3525x (at work) and Deskjet 6940 (at home). Both printers are accessed across a local network.
I recently upgraded from Vista Enterprise to Windows 7 Enterprise.
Everything still prints fine (from Word, Adobe Reader, Windows Photo Viewer, etc.), except for IE 8! When I try to print a web page from IE, it prints only the page header, and otherwise the sheet is empty. This symptom occurs on both printers. (And of course this worked fine before the upgrade.)
Any ideas? Thanks for any help.
Jeff
This question was solved.
View Solution.(same poster)
If anyone else is having this problem, I found the solution on another forum (http://social.answers.microsoft.com/Forums/en-US/InternetExplorer/thread/920588e5-ccc4-4e24-83d6-606...).
Specifically, the following steps solved the problem:
1. If it doesn't already exist, create a directory named "Low" in your directory "C:\Users\<your_user_name>\AppData\Local\Temp\".
2. From a command prompt, issue this command: ICACLS C:\Users\<your_user_name>\AppData\Local\Temp\Low /setintegritylevel (OI)(CI)low
Jeff -
Fields in read-only mode for BP transaction in upgrade from 4.72 to ECC6.0
Hello,
This is regarding the query for BP transaction in upgrade from 4.72 to ECC 6.0.
While creating BP / Changing BP system is disabling the fields in compnay code & sales area option. There is a SAP not provided 907860; and specified that the proplem is because of the delta customizing.
All the customization settings are as per the note. And the Synchronization Control is also activated. But still the fields are disabled only.
I have checked the field settings also in Cross-Application-Components & Logistic-Genral.
But these are not working for compnay code & sales area data.
please let me know if anyone has faced this type of problem / found any solution on this.
Best Regards,
ShubhadaSAP IMG -> Cross Application Components -> Master Data Synchronization  Synchronization Control -> Synchronization Control -> Activate Synchronization options
This setting allows you to activate synchronization of BP with R/3. Not maintaining the values may result in certain fields being read-only in BP.
Suggested Values:
Source Object: BP | Target Object: CUSTOMER | Active Indicator : X
Source Object: BP | Target Object: VENDOR | Active Indicator : X
Source Object: CUSTOMER | Target Object: BP | Active Indicator : X
Source Object: VENDOR | Target Object: BP | Active Indicator : X
Have you set all of the above settings??
BHARATH -
Error in Access VBA Application when upgrading from Acrobat 8.0 to 9.0
Hello.
The company that I work for recently upgraded from Adobe Acrobat 8.0 to 9.0 and I`m experiencing some problems with my Access 2003 VBA Application that extracts text from PDF-files and insert it into a table. I have tried adding references to Adobe 9.0 Type Library, but still no luck. Anyone having any ideas for a workaround? See attatched image for error-message. Any help will be greatly appreciated!
Regards,
SteffanPublic Function lesPDF()
'On Error Resume Next
Dim MyDB As Database, EplanSet As DAO.Recordset, ResultSet As DAO.Recordset, SideSet As DAO.Recordset, TekstSet As DAO.Recordset
Dim AcroApp As CAcroApp
Dim AcroAVDoc As CAcroAVDoc
Dim AcroPDDoc As CAcroPDDoc
Dim AcroHiliteList As CAcroHiliteList
Dim AcroTextSelect As CAcroPDTextSelect
Dim PageNumber, PageContent, i, j
Dim Ferdig As Boolean
Dim StartPos, Length As Double
Dim PartSyntax() As String
Dim DocType() As String
Dim Content, strFileName, Temp As String
Dim k, Lengde As Integer
Plant = Form_Autoexec.cmbPlant.Value
Set AcroApp = CreateObject("AcroExch.App")
Set AcroAVDoc = CreateObject("AcroExch.AVDoc")
Set MyDB = DBEngine.Workspaces(0).Databases(0)
EplanSet.MoveLast
EplanSet.MoveFirst
Do Until EplanSet.EOF
strFileName = EplanSet!path & EplanSet!File
If AcroAVDoc.Open(strFileName, vbNull) <> True Then
Exit Function
End If
Set AcroAVDoc = AcroApp.GetActiveDoc
Set AcroPDDoc = AcroAVDoc.GetPDDoc
Here is some of the code, where the program stops is marked in red. This worked perfectly with Adobe 8.0. Thaks for any help or suggestions! -
Upgrade from R/3 4.6C to ECC 6.00 : languages
Hi,
We're trying to upgrade from SAP R/3 4.6C to ECC 6.00 under NT environment, having Oracle as database. During the preparation phase, we got the following error, and in our current SAP system R/3 we have 2 additional languages NL and FR (EN and DE are already in), can you please explain why this phase is blocking in this step, and if I continue I've to do a full language import, thanks in advance.
The following language(s) could not be updated yet:
- French for component EA-APPL
- French for component EA-DFPS
- French for component EA-FINSERV
- French for component EA-GLTRADE
- French for component EA-HR
- French for component EA-IPPE
- French for component EA-PS
- French for component EA-RETAIL
- French for component ECC-DIMP
- French for component ERECRUIT
- French for component FI-CA
- French for component FI-CAX
- French for component FINBASIS
- French for component INSURANCE
- French for component IS-CWM
- French for component IS-H
- French for component IS-M
- French for component IS-OIL
- French for component IS-PS-CA
- French for component IS-UT
- French for component LSOFE
- French for component PI_BASIS
- French for component SAP_ABA
- French for component SAP_AP
- French for component SAP_APPL
- French for component SAP_BASIS
- French for component SAP_BW
- French for component SAP_HR
- French for component SEM-BW
- French for component ST-PI
- Dutch for component EA-APPL
- Dutch for component EA-DFPS
- Dutch for component EA-FINSERV
- Dutch for component EA-GLTRADE
- Dutch for component EA-HR
- Dutch for component EA-IPPE
- Dutch for component EA-PS
- Dutch for component EA-RETAIL
- Dutch for component ECC-DIMP
- Dutch for component ERECRUIT
- Dutch for component FI-CA
- Dutch for component FI-CAX
- Dutch for component FINBASIS
- Dutch for component INSURANCE
- Dutch for component IS-CWM
- Dutch for component IS-H
- Dutch for component IS-M
- Dutch for component IS-OIL
- Dutch for component IS-PS-CA
- Dutch for component IS-UT
- Dutch for component LSOFE
- Dutch for component PI_BASIS
- Dutch for component SAP_ABA
- Dutch for component SAP_AP
- Dutch for component SAP_APPL
- Dutch for component SAP_BASIS
- Dutch for component SAP_BW
- Dutch for component SAP_HR
- Dutch for component SEM-BW
- Dutch for component ST-PI
Please mount another Language Disk for these language(s).
If you do not have further Language Disk(s), you may
continue, but the languages mentioned above will be lost
after the upgrade. A full language import has to be
performed after the upgrade to reinstall the language(s).
? continue
? cancelHi Markus,
I've introduce the following information:
> MOUNT POINT 07 = S:\export\Data\CDLAN2
> MOUNT POINT 01 = S:\export\Data\KN_WINDOWS_X86_64_AUPG
> MOUNT POINT 06 = S:\export\Data\CDLAN1
> MOUNT POINT 05 = S:\export\Data\CD3
> MOUNT POINT 03 = S:\export\Data\CD1
> MOUNT POINT 08 = S:\export\Data\UMN_WINDOWS_X86_64
> MOUNT POINT 02 = S:\export\Data\KN_WINDOWS_X86_64
> MOUNT POINT 04 = S:\export\Data\CD2
And in mount point 06/07 we have the languages.
The content of the trace file is:
here's the complete trace:
2007/07/05 16:35:01 *****************************
2007/07/05 16:35:01 Checking directories ...
2007/07/05 16:35:01 Searching for Data Carrier labeled AOXUPGR
Adding path: S:\export\Data\KN_WINDOWS_X86_64_AUPG
2007/07/05 16:35:01 Working on S:\export\Data\KN_WINDOWS_X86_64_AUPG ... no matching label
Adding path: S:\export\Data\KN_WINDOWS_X86_64
2007/07/05 16:35:01 Working on S:\export\Data\KN_WINDOWS_X86_64 ... no matching label
Adding path: S:\export\Data\CD1
2007/07/05 16:35:01 Resolving directory structure below S:\export\Data\CD1
Adding path: S:\export\Data\CD1\UPG1
Adding path: S:\export\Data\CD1\UPG2
Adding path: S:\export\Data\CD1\UPG3
Adding path: S:\export\Data\CD1\UPG4
Adding path: S:\export\Data\CD1\UPG5
Adding path: S:\export\Data\CD1\UPG6
2007/07/05 16:35:01 Directory structure below S:\export\Data\CD1 resolved
2007/07/05 16:35:01 Working on S:\export\Data\CD1 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CD1\UPG1 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CD1\UPG2 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CD1\UPG3 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CD1\UPG4 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CD1\UPG5 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CD1\UPG6 ... no matching label
Adding path: S:\export\Data\CD2
2007/07/05 16:35:01 Resolving directory structure below S:\export\Data\CD2
Adding path: S:\export\Data\CD2\UPG7
Adding path: S:\export\Data\CD2\UPG8
Adding path: S:\export\Data\CD2\UPG9
Adding path: S:\export\Data\CD2\UPG10
Adding path: S:\export\Data\CD2\UPG11
Adding path: S:\export\Data\CD2\UPG12
2007/07/05 16:35:01 Directory structure below S:\export\Data\CD2 resolved
2007/07/05 16:35:01 Working on S:\export\Data\CD2 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CD2\UPG7 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CD2\UPG8 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CD2\UPG9 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CD2\UPG10 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CD2\UPG11 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CD2\UPG12 ... no matching label
Adding path: S:\export\Data\CD3
2007/07/05 16:35:01 Resolving directory structure below S:\export\Data\CD3
Adding path: S:\export\Data\CD3\UPG13
Adding path: S:\export\Data\CD3\UPG14
Adding path: S:\export\Data\CD3\UPG15
Adding path: S:\export\Data\CD3\UPG16
2007/07/05 16:35:01 Directory structure below S:\export\Data\CD3 resolved
2007/07/05 16:35:01 Working on S:\export\Data\CD3 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CD3\UPG13 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CD3\UPG14 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CD3\UPG15 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CD3\UPG16 ... no matching label
Adding path: S:\export\Data\CDLAN1
2007/07/05 16:35:01 Resolving directory structure below S:\export\Data\CDLAN1
Adding path: S:\export\Data\CDLAN1\LANG1
Adding path: S:\export\Data\CDLAN1\LANG2
Adding path: S:\export\Data\CDLAN1\LANG3
Adding path: S:\export\Data\CDLAN1\LANG4
2007/07/05 16:35:01 Directory structure below S:\export\Data\CDLAN1 resolved
2007/07/05 16:35:01 Working on S:\export\Data\CDLAN1 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CDLAN1\LANG1 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CDLAN1\LANG2 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CDLAN1\LANG3 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CDLAN1\LANG4 ... no matching label
Adding path: S:\export\Data\CDLAN2
2007/07/05 16:35:01 Resolving directory structure below S:\export\Data\CDLAN2
Adding path: S:\export\Data\CDLAN2\LANG5
Adding path: S:\export\Data\CDLAN2\LANG6
2007/07/05 16:35:01 Directory structure below S:\export\Data\CDLAN2 resolved
2007/07/05 16:35:01 Working on S:\export\Data\CDLAN2 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CDLAN2\LANG5 ... no matching label
2007/07/05 16:35:01 Working on S:\export\Data\CDLAN2\LANG6 ... no matching label
Adding path: S:\export\Data\UMN_WINDOWS_X86_64
2007/07/05 16:35:01 Working on S:\export\Data\UMN_WINDOWS_X86_64 ... no matching label
Regards,
A.Kamel -
I've recently completed a database upgrade from 10.2.0.3 to 11.2.0.1 using the DBUA.
I've since encountered a slowdown when running a script which drops and recreates a series of ~250 tables. The script normally runs in around 19 seconds. After the upgrade, the script requires ~2 minutes to run.
By chance has anyone encountered something similar?
The problem may be related to the behavior of an "after CREATE on schema" trigger which grants select privileges to a role through the use of a dbms_job call; between 10g and the database that was upgraded from 10G to 11g. Currently researching this angle.
I will be using the following table creation DDL for this abbreviated test case:
create table ALLIANCE (
ALLIANCEID NUMBER(10) not null,
NAME VARCHAR2(40) not null,
CREATION_DATE DATE,
constraint PK_ALLIANCE primary key (ALLIANCEID)
using index
tablespace LIVE_INDEX
tablespace LIVE_DATA;When calling the above DDL, an "after CREATE on schema" trigger is fired which schedules a job to immediately run to grant select privilege to a role for the table which was just created:
create or replace
trigger select_grant
after CREATE on schema
declare
l_str varchar2(255);
l_job number;
begin
if ( ora_dict_obj_type = 'TABLE' ) then
l_str := 'execute immediate "grant select on ' ||
ora_dict_obj_name ||
' to select_role";';
dbms_job.submit( l_job, replace(l_str,'"','''') );
end if;
end;
{code}
Below I've included data on two separate test runs. The first is on the upgraded database and includes optimizer parameters and an abbreviated TKPROF. I've also, included the offending sys generate SQL which is not issued when the same test is run on a 10g environment that has been set up with a similar test case. The 10g test run's TKPROF is also included below.
The version of the database is 11.2.0.1.
These are the parameters relevant to the optimizer for the test run on the upgraded 11g SID:
{code}
SQL> show parameter optimizer
NAME TYPE VALUE
optimizer_capture_sql_plan_baselines boolean FALSE
optimizer_dynamic_sampling integer 2
optimizer_features_enable string 11.2.0.1
optimizer_index_caching integer 0
optimizer_index_cost_adj integer 100
optimizer_mode string ALL_ROWS
optimizer_secure_view_merging boolean TRUE
optimizer_use_invisible_indexes boolean FALSE
optimizer_use_pending_statistics boolean FALSE
optimizer_use_sql_plan_baselines boolean TRUE
SQL> show parameter db_file_multi
NAME TYPE VALUE
db_file_multiblock_read_count integer 8
SQL> show parameter db_block_size
NAME TYPE VALUE
db_block_size integer 8192
SQL> show parameter cursor_sharing
NAME TYPE VALUE
cursor_sharing string EXACT
SQL> column sname format a20
SQL> column pname format a20
SQL> column pval2 format a20
SQL> select sname, pname, pval1, pval2 from sys.aux_stats$;
SNAME PNAME PVAL1 PVAL2
SYSSTATS_INFO STATUS COMPLETED
SYSSTATS_INFO DSTART 03-11-2010 16:33
SYSSTATS_INFO DSTOP 03-11-2010 17:03
SYSSTATS_INFO FLAGS 0
SYSSTATS_MAIN CPUSPEEDNW 713.978495
SYSSTATS_MAIN IOSEEKTIM 10
SYSSTATS_MAIN IOTFRSPEED 4096
SYSSTATS_MAIN SREADTIM 1565.746
SYSSTATS_MAIN MREADTIM
SYSSTATS_MAIN CPUSPEED 2310
SYSSTATS_MAIN MBRC
SYSSTATS_MAIN MAXTHR
SYSSTATS_MAIN SLAVETHR
13 rows selected.
{code}
Output from TKPROF on the 11g SID:
{code}
create table ALLIANCE (
ALLIANCEID NUMBER(10) not null,
NAME VARCHAR2(40) not null,
CREATION_DATE DATE,
constraint PK_ALLIANCE primary key (ALLIANCEID)
using index
tablespace LIVE_INDEX
tablespace LIVE_DATA
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 4 0
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.00 0.00 0 0 4 0
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 324
{code}
... large section omitted ...
Here is the performance hit portion of the TKPROF on the 11g SID:
{code}
SQL ID: fsbqktj5vw6n9
Plan Hash: 1443566277
select next_run_date, obj#, run_job, sch_job
from
(select decode(bitand(a.flags, 16384), 0, a.next_run_date,
a.last_enabled_time) next_run_date, a.obj# obj#,
decode(bitand(a.flags, 16384), 0, 0, 1) run_job, a.sch_job sch_job from
(select p.obj# obj#, p.flags flags, p.next_run_date next_run_date,
p.job_status job_status, p.class_oid class_oid, p.last_enabled_time
last_enabled_time, p.instance_id instance_id, 1 sch_job from
sys.scheduler$_job p where bitand(p.job_status, 3) = 1 and
((bitand(p.flags, 134217728 + 268435456) = 0) or
(bitand(p.job_status, 1024) <> 0)) and bitand(p.flags, 4096) = 0 and
p.instance_id is NULL and (p.class_oid is null or (p.class_oid is
not null and p.class_oid in (select b.obj# from sys.scheduler$_class b
where b.affinity is null))) UNION ALL select
q.obj#, q.flags, q.next_run_date, q.job_status, q.class_oid,
q.last_enabled_time, q.instance_id, 1 from sys.scheduler$_lightweight_job
q where bitand(q.job_status, 3) = 1 and ((bitand(q.flags, 134217728 +
268435456) = 0) or (bitand(q.job_status, 1024) <> 0)) and
bitand(q.flags, 4096) = 0 and q.instance_id is NULL and (q.class_oid
is null or (q.class_oid is not null and q.class_oid in (select
c.obj# from sys.scheduler$_class c where
c.affinity is null))) UNION ALL select j.job, 0,
from_tz(cast(j.next_date as timestamp), to_char(systimestamp,'TZH:TZM')
), 1, NULL, from_tz(cast(j.next_date as timestamp),
to_char(systimestamp,'TZH:TZM')), NULL, 0 from sys.job$ j where
(j.field1 is null or j.field1 = 0) and j.this_date is null) a order by
1) where rownum = 1
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.47 0.47 0 9384 0 1
total 3 0.48 0.48 0 9384 0 1
Misses in library cache during parse: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
1 COUNT STOPKEY (cr=9384 pr=0 pw=0 time=0 us)
1 VIEW (cr=9384 pr=0 pw=0 time=0 us cost=5344 size=6615380 card=194570)
1 SORT ORDER BY STOPKEY (cr=9384 pr=0 pw=0 time=0 us cost=5344 size=11479630 card=194570)
194790 VIEW (cr=9384 pr=0 pw=0 time=537269 us cost=2563 size=11479630 card=194570)
194790 UNION-ALL (cr=9384 pr=0 pw=0 time=439235 us)
231 FILTER (cr=68 pr=0 pw=0 time=920 us)
231 TABLE ACCESS FULL SCHEDULER$_JOB (cr=66 pr=0 pw=0 time=690 us cost=19 size=13157 card=223)
1 TABLE ACCESS BY INDEX ROWID SCHEDULER$_CLASS (cr=2 pr=0 pw=0 time=0 us cost=1 size=40 card=1)
1 INDEX UNIQUE SCAN SCHEDULER$_CLASS_PK (cr=1 pr=0 pw=0 time=0 us cost=0 size=0 card=1)(object id 5056)
0 FILTER (cr=3 pr=0 pw=0 time=0 us)
0 TABLE ACCESS FULL SCHEDULER$_LIGHTWEIGHT_JOB (cr=3 pr=0 pw=0 time=0 us cost=2 size=95 card=1)
0 TABLE ACCESS BY INDEX ROWID SCHEDULER$_CLASS (cr=0 pr=0 pw=0 time=0 us cost=1 size=40 card=1)
0 INDEX UNIQUE SCAN SCHEDULER$_CLASS_PK (cr=0 pr=0 pw=0 time=0 us cost=0 size=0 card=1)(object id 5056)
194559 TABLE ACCESS FULL JOB$ (cr=9313 pr=0 pw=0 time=167294 us cost=2542 size=2529254 card=194558)
{code}
and the totals at the end of the TKPROF on the 11g SID:
{code}
OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 4 0
Fetch 0 0.00 0.00 0 0 0 0
total 3 0.00 0.00 0 0 4 0
Misses in library cache during parse: 1
Misses in library cache during execute: 1
OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
Parse 70 0.00 0.00 0 0 0 0
Execute 85 0.01 0.01 0 62 208 37
Fetch 49 0.48 0.49 0 9490 0 35
total 204 0.51 0.51 0 9552 208 72
Misses in library cache during parse: 5
Misses in library cache during execute: 3
35 user SQL statements in session.
53 internal SQL statements in session.
88 SQL statements in session.
Trace file: 11gSID_ora_17721.trc
Trace file compatibility: 11.1.0.7
Sort options: default
1 session in tracefile.
35 user SQL statements in trace file.
53 internal SQL statements in trace file.
88 SQL statements in trace file.
51 unique SQL statements in trace file.
1590 lines in trace file.
18 elapsed seconds in trace file.
{code}
The version of the database is 10.2.0.3.0.
These are the parameters relevant to the optimizer for the test run on the 10g SID:
{code}
SQL> show parameter optimizer
NAME TYPE VALUE
optimizer_dynamic_sampling integer 2
optimizer_features_enable string 10.2.0.3
optimizer_index_caching integer 0
optimizer_index_cost_adj integer 100
optimizer_mode string ALL_ROWS
optimizer_secure_view_merging boolean TRUE
SQL> show parameter db_file_multi
NAME TYPE VALUE
db_file_multiblock_read_count integer 8
SQL> show parameter db_block_size
NAME TYPE VALUE
db_block_size integer 8192
SQL> show parameter cursor_sharing
NAME TYPE VALUE
cursor_sharing string EXACT
SQL> column sname format a20
SQL> column pname format a20
SQL> column pval2 format a20
SQL> select sname, pname, pval1, pval2 from sys.aux_stats$;
SNAME PNAME PVAL1 PVAL2
SYSSTATS_INFO STATUS COMPLETED
SYSSTATS_INFO DSTART 09-24-2007 11:09
SYSSTATS_INFO DSTOP 09-24-2007 11:09
SYSSTATS_INFO FLAGS 1
SYSSTATS_MAIN CPUSPEEDNW 2110.16949
SYSSTATS_MAIN IOSEEKTIM 10
SYSSTATS_MAIN IOTFRSPEED 4096
SYSSTATS_MAIN SREADTIM
SYSSTATS_MAIN MREADTIM
SYSSTATS_MAIN CPUSPEED
SYSSTATS_MAIN MBRC
SYSSTATS_MAIN MAXTHR
SYSSTATS_MAIN SLAVETHR
13 rows selected.
{code}
Now for the TKPROF of a mirrored test environment running on a 10G SID:
{code}
create table ALLIANCE (
ALLIANCEID NUMBER(10) not null,
NAME VARCHAR2(40) not null,
CREATION_DATE DATE,
constraint PK_ALLIANCE primary key (ALLIANCEID)
using index
tablespace LIVE_INDEX
tablespace LIVE_DATA
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.01 0 2 16 0
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.01 0.01 0 2 16 0
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 113
{code}
... large section omitted ...
Totals for the TKPROF on the 10g SID:
{code}
OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
Parse 1 0.00 0.02 0 0 0 0
Execute 1 0.00 0.00 0 2 16 0
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.00 0.02 0 2 16 0
Misses in library cache during parse: 1
OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
Parse 65 0.01 0.01 0 1 32 0
Execute 84 0.04 0.09 20 90 272 35
Fetch 88 0.00 0.10 30 281 0 64
total 237 0.07 0.21 50 372 304 99
Misses in library cache during parse: 38
Misses in library cache during execute: 32
10 user SQL statements in session.
76 internal SQL statements in session.
86 SQL statements in session.
Trace file: 10gSID_ora_32003.trc
Trace file compatibility: 10.01.00
Sort options: default
1 session in tracefile.
10 user SQL statements in trace file.
76 internal SQL statements in trace file.
86 SQL statements in trace file.
43 unique SQL statements in trace file.
949 lines in trace file.
0 elapsed seconds in trace file.
{code}
Edited by: user8598842 on Mar 11, 2010 5:08 PMSo while this certainly isn't the most elegant of solutions, and most assuredly isn't in the realm of supported by Oracle...
I've used the DBMS_IJOB.DROP_USER_JOBS('username'); package to remove the 194558 orphaned job entries from the job$ table. Don't ask, I've no clue how they all got there; but I've prepared some evil looks to unleash upon certain developers tomorrow morning.
Not being able to reorganize the JOB$ table to free the now wasted ~67MB of space I've opted to create a new index on the JOB$ table to sidestep the full table scan.
CREATE INDEX SYS.JOB_F1_THIS_NEXT ON SYS.JOB$ (FIELD1, THIS_DATE, NEXT_DATE) TABLESPACE SYSTEM;The next option would be to try to find a way to grant the select privilege to the role without using the aforementioned "after CREATE on schema" trigger and dbms_job call. This method was adopted to cover situations in which a developer manually added a table directly to the database rather than using the provided scripts to recreate their test environment.
I assume that the following quote from the 11gR2 documentation is mistaken, and there is no such beast as "create or replace table" in 11g:
http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/statements_9003.htm#i2061306
"Dropping a table invalidates dependent objects and removes object privileges on the table. If you want to re-create the table, then you must regrant object privileges on the table, re-create the indexes, integrity constraints, and triggers for the table, and respecify its storage parameters. Truncating and replacing have none of these effects. Therefore, removing rows with the TRUNCATE statement or replacing the table with a *CREATE OR REPLACE TABLE* statement can be more efficient than dropping and re-creating a table."
Maybe you are looking for
-
Video camera capture/streaming: example implementation
If anyone is interested I have put together a very simple video capture app using LTI-CIVIL (an open source video streaming library for Java) and using JavaFX. This is a more complete/useful example of some code I posted months ago doing something si
-
EZedia Plug-ins for iMovie: Vol. 1 1.2.6
Hi out there! Anyone try using this plug in? .......eZedia Plug-ins for iMovie: Vol. 1 1.2.6 If so, how did you like it and did it work well with imovie? Was it user friendly? etc. etc. Thanks, Simonne
-
Iphone 4s won't activate after restore
The software on my phone 4s (ios 7.1, Verizon carrier) was acting buggy, so I decided to restore it. After doing so and restoring it from a backup, the phone started telling me it wasn't activated. I tried setting it up as a new phone, but the same
-
Photoshop CS3 crashes on startup running snow leopard
I am running Photoshop CS3 on iMac with OS x 10.6.8. Photoshop crashes on startup or if it does start crashes when I try to perform a task. Startup crash gives error code -600
-
Illustrator CS4 Crash on Save help!
I have Illustrator CS4 on both Vista x64 and Windows 7 x64 platforms. Whenever I attempt to save work via save, save as, or save for web and devices, the program stalls and crashes. I have not found a working solution, the Printer Spooler is not the