Oracle 10g on VMS with TCPWARE
All:
I am trying to upgrade from Oracle 9.0 to Oracle 10. (Oracle 9 works fine for me, but I need the latest patches)..
The system is running OpenVMS Alpha, using Process Software's TCPWARE. Oracle states that it only officially supports UCX. For various reasons, switching to UCX/DEC Tcpware is not a good option.
With my current version of TCPWARE (5.5-3), the installer will not even start (I am getting tcp/ip level errors). I can upgrade TCPWARE to the latest version, but don't want to go to the time and expense to do this if it won't help. Has anyone out there installed Oracle10 on a VMS AXP system with TCPWARE?
Thanks for any help!
Here you can find all the certified OS for Oracle 10g:
http://www.oracle.com/technology/software/products/database/oracle10g/index.html
And I can see OpenVMS in that....
Daljit Singh
Similar Messages
-
Oracle 10g R2 installation with ASM+RAC
Gurus,
Need some suggestuon on Oracle 10g R2 installation with ASM and RAC option.
We have found many documents on the Oracle, HP, HP-Oracle CTC and third party web sites, but nothing that is specific to this particular combination of separate
ORACLE_HOMEs, ASM and 10g RAC CRS. It is unclear for me from the documentation how this combination of ASM and 10.2g RAC may best be installed.
The high level steps i got after reading lot of docs as follows - but i am not sure whether these are correct or not. if they are correct, can any one share their experience/notes please?
1) Install CRS
2) Install RDBMS for ASM HOME - create separater oracle home for ASM instance using OUI
3) Install RDBMS for RAC Database Home - create separater oracle home for RAC database using OUI
4) Create ASM database using DBCA -
5) Use dbca to create database.Oracle provides 'paint by numbers' tutorials called 'Oracle By Example'. (Go to OTN, check under the Training tab)
They have one for a Windows based ASM/RAC that you might want to review. Not your specific environment, but the steps will be dag-nabbed close.
I recommend walking the path (http://otn.oracle.com >> training:OBE >> Database 10g Release 1:VMWare:Installation
http://www.oracle.com/technology/obe/obe10gdb_vmware/install/racinstallwin2k/racinstallwin2k.htm -
Guys,
Need some input on can we install Oracle 10g on VMS OS.
Actually we have an application running on VMS and DB is RDB.
Planning for migration to Oracle. Needs to know will Oracle be supported in VMS or do we need to move the scripts too to UNIX or someother OS.
Thanks in advance for your suggestions.
Regards,
S.Muthukumar.Here you can find all the certified OS for Oracle 10g:
http://www.oracle.com/technology/software/products/database/oracle10g/index.html
And I can see OpenVMS in that....
Daljit Singh -
Basic monitoring of a standard edition Oracle 10g Alpha VMS
We are running Oracle 9.2.0.8 on Alpha VMS standard edition and are about to upgrade to Oracle 10g. It appears to me that :
- database control is not available for Alpha VMS
- Oracle grid control requires packs to see even the basic stuff that database control gives you, but you can only licence the packs against enterprise edition databases
What are we meant to use for basic monitoring of a standard edition Oracle 10g database on VMS?
Thanks
FloraI have operating system VMS 8.3 with Oracle 10.2.0.4 EE, but I recommend 10.2.0.5, support a few weeks ago send me an email in which broad support for VMS until July 2013 for failing to support Itanium. Support ends in 2017, maybe it's time to migrate to another operating system. I am prounix, but VMS is much more advanced than Unix in some ways.
I do not remember well, but I use 10.2.0.4 or 10.2.0.2 agent, but the operating system causes problems and don't recollet all data.
The license part I don't know, ask a salesperson, but you don't need license all packs, there are many free and good tools like ASHMON (look for it in Google) that cover packs like performance/diagnostics
HTH
Antonio NAVARRO -
Oracle 10g RAC design with ASM and OCFS
Hi all,
I have a question about a proposed Oracle 10g Release 2 RAC design for a 2 node cluster.
ASM can store database files but not Oracle binaries nor OCR and voting disk. As such, OCFS version 1 does not support a shared Oracle Home. We plan to use OCFS version 2 with ASM version 2 on Red Hat Linux Enteprrise Server 4 with Oracle 10g Release 2 (10.2.0.1).
For OCFS v2, a shared Oracle home and shared OCR and voting disk are supported. My question is does the following proposed architecture make sense for OCFS v2 with ASM v2 on Red Hat Linux 4?
Oracle 10g Release 2 on Red Hat Enterprise Linux Server 4:
OCFS V2:
- shared Oracle home and binaries
- shared OCR and vdisk files
- CRS software shared OCFS v2 filesystem
- spfile
- controlfiles
- tnsnames.ora
ASM v2 with ASMLib v2:
Proposed ASM disk groups:
- data_dg for application data
- backupdg for flashback and archivelogs
- undo_rac1dg ASM diskgroup for undo tablespace for racnode1
- undo_rac2dg ASM diskgroup for undo tablespace for racnode2
- redo_rac1dg ASM diskgroup to hold redo logs for racnode1
- redo_rac2dg ASM diskgroup to hold redo logs for racnode2
- temp1dg temp tablespace for racnode1
- temp2dg temp tablespace for racnode2
Does this sound like a good initial design?
Ben Prusinski, Senior DBAOK Tim, thanks for advices.
I think Netbackup can be integrated with RMAN but I don't want to loose time on this (political).
To summarize:
ORACLE_HOME and CRS_HOME on each node (RAID1 and NTFS)
Shared storage:
Disk1 and disk 2: RAID1: - Raw partition 1 for OCR
- Raw partition 2 for VotingDisk
- OCFS for FLASH_RECOVERY_AREA
Disk3, disk4 and disk5: RAID 0 - Raw with ASM redundancy normal 1 diskgroup for database files.
This is a running project here, will start testing the design on VMware and then go for production setup.
Regards -
Create a new user for oracle 10G ASM instance with sysdba system privilege
Hi,
In our Golden Gate Project, we require the SYS user credential to connect to the Oracle 10g ASM instance to read the database transaction logs.But our client is not providing the SYS user credential to connnect to ASM instance.
I'm getting the error message "ORA-01109: database not open",When I tried to create a new user using the below the steps in oracle 10g ASM instance
1. Login using "sqlplus / as sysdba"
2. Create user <username> identified by <password>;
But in oracle 11g ASM instance, I'm able to create new user by connecting the ASM instance with SYSASM role without issues.
Is there is any workaround to create a new user with sysdba system privilege in oracle 10g ASM instance?.
Thanks in advance .Hi,
Recreate the password file for the ASM instance as follows:
Unix:
orapwd file=<ORACLE_HOME>/dbs/PWD<SID> password=<sys_password>
Windows:
orapwd file=<ORACLE_HOME>/database/PWD<SID>.ora password=<sys_password>
Now sys password is reset, we are ready to use sys for ASM management. I decided to create another user ASMDBA as I tried above.
SQL> create user ASMDBA identified by test01;
User created.
SQL> grant SYSASM, SYSOPER to ASMDBA;
Grant succeeded.
SQL> select * from v$pwfile_users;
USERNAME SYSDBA SYSOPE SYSASM
SYS TRUE TRUE TRUE
ASMDBA FALSE TRUE TRUE
Please see this link : http://orachat.com/how-to-change-asm-sys-password-creating-sysasm-user-11g/
Thank you -
Oracle 10g ODBC driver with Windows 7 32 bit connecting to Excel
Hi Everyone,
I'm having an issue connecting to our oracle 10g database (64 bit system) from a 32 bit windows 7 installation running excel 2010/2007 using odbc drivers. Our excel spreadsheets worked without issue in windows xp.
In windows 7 I have been able to install the odbc driver via the following method:
1. Download the oracle 'basic' client and oracle 'odbc' client from www.oracle.com and extract the contents:
instantclient-basic-win32-10.2.0.3-20061115
instantclient-odbc-win32-10.2.0.3-20061115
2. Create a folder 'oracle' and place the instantclient_10_2 folder inside.
3. Ensure all the basic and odbc files reside in this folder.
4. Create a 'network' folder within instantclient_10_2
5. Create an 'admin' folder within 'network'
6. Create sqlnet.ora and tnsnames.ora files within the 'admin' folder:
7. Run 'obdc_install' within the instantclient_10_2 folder
8. Download and run the oracle odbc driver exe file from www.oracle.com (ORA10203.exe)
9. Go to Control Panel -> Administrative Tools -> Data Sources and create a new System DN
This allows excel spreadsheets connecting ONLY to oracle to function.
Unfortunately some of our spreadsheets connect to both a MySQL database as well as oracle. Spreadsheets connecting only to MySQL also function correctly, however, as soon as the vb associated with a spreadsheet includes a mysql call followed by an oracle call the spreadsheets fail. In Excel 2007 excel crashes completely everytime. In Excel 2010 the mysql data is generated, then when the script hits to oracle odbc connection there is a long pause, the oracle ODBC driver connect pops up requesting a username/password (this didn't happen in xp), then the data source selection pops up, then the username/password connect screen pops up again, and finally it fails with a runtime error '1004' General ODBC error.
If you look at the VB script it's failing at the Refresh BackgroundQuery statement in the ODBC connection block:
With Worksheets("Oracle1").QueryTables.Add(Connection:= _
"ODBC;DSN=Oracle_ODBC;UID=user;PWD=password;SERVER=ORACLE_LINUX;", _
Destination:=Worksheets("Oracle1").Range("A1"))
.CommandText = strSql
.Name = "Oracle1_data"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlOverwriteCells
.SavePassword = True
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.PreserveColumnInfo = True
.Refresh BackgroundQuery:=False
End With
Does anyone know how to get around this? It's very important!!
Also if you try to edit the oracle ODBC connections in Control Panels -> Administrative Tools -> Data Sources, ODBC crashes 95% of the time.
Advice greatly appreciated!!Well, here's what I'd check anyway..
1) get Process Explorer from http://sysinternals.com
2) make a mysql connection, get a list of dll's loaded (include the location and version columns in the lower pane output)
3) close that, then make an ora odbc connection, get a list of dlls.
4) close that, then make a mysql connection followed by an ora odbc connection, get a list of dlls
5) compare the lists of loaded dlls. In particular, the difference between #3 and #4, is there a dll dependency that gets loaded by oracle's odbc that comes from a different location when you've opened a mysql connection first?
May or may not help, but might turn up a difference to help point you in a direction.
Greg -
ORA-12952 and Oracle 10g XE problem with migration to 11g XE
Hi, all
My DB (Oracle 10g XE) reach storage limit. I have tried to migrate to 11g XE version but unsuccessful.
For migration I used next manual: http://download.oracle.com/docs/cd/E17781_01/install.112/e18803/toc.htm#XEINW136
expdp returned next error:
Processing object type DATABASE_EXPORT/SCHEMA/CLUSTER/INDEX
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE
ORA-39125: Worker unexpected fatal error in KUPW$WORKER.CREATE_OBJECT_ROWS while calling FORALL [TABLE]
ORA-12952: The request exceeds the maximum allowed database size of 4 GB
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 116
ORA-06512: at "SYS.KUPW$WORKER", line 6248
----- PL/SQL Call Stack -----
object line object
handle number name
2D6F0304 14916 package body SYS.KUPW$WORKER
2D6F0304 6300 package body SYS.KUPW$WORKER
2D6F0304 5638 package body SYS.KUPW$WORKER
2D6F0304 2145 package body SYS.KUPW$WORKER
2D6F0304 6861 package body SYS.KUPW$WORKER
2D6F0304 1262 package body SYS.KUPW$WORKER
285BD50C 2 anonymous block
Next I have tried to garbage some information from DB but I got some as "UNDO cannot get next block" error.
What else can I do to migrate the data from 10g with limitation problem to 11g?
Thank You in advance.There is output from SQL:
"OWNER"; "TABLESPACE_NAME"; "COUNT(*)"; "SIZE_MB"
"A1"; "USERS"; "899"; "3995,9375"
"SYS"; "SYSTEM"; "980"; "323,1875"
"FLOWS_020100";"SYSAUX"; "658"; "297,625"
"SYS"; "SYSAUX"; "626"; "151,125"
"XDB"; "SYSAUX"; "753"; "84,5"
"SYSTEM";"SYSTEM"; "259"; "31,75"
"SYS"; "UNDO"; "10"; "20,25"
"MDSYS"; "SYSTEM"; "96"; "12,25"
"SYSTEM";"SYSAUX"; "109"; "6,8125"
"CTXSYS";"SYSAUX"; "74"; "4,625"
"D1"; "USERS"; "14"; "3,5625"
"DBSNMP";"SYSAUX"; "25"; "1,5625"
"HR"; "USERS"; "25"; "1,5625"
"FLOWS_FILES";"SYSAUX"; "7"; ",5"
"OUTLN"; "SYSTEM"; "8"; ",5"
"TSMSYS";"SYSAUX"; "4"; ",25"
1. When I tried to delete some old data from USERS dataspase by some PROCEDURE I got the next error:
ERROR at line 1:
ORA-30036: unable to extend segment by 8 in undo tablespace 'UNDO'
This problem I solved. PROCEDURE generate huge buffer for transaction. Therefore I deleted the old data by small pieces.
After I have deleted the old data the Application start to comunicate with database without ORA-12952 error.
2. I've reduced the size of SYSAUX (http://remidian.com/oracle/purging-sysaux-tablespace-purging-awr-reports.html) down to 94%
3. I has SYSTEM tablespace 100% full. When I've tried to resize the SYSTEM table up I got the ORA-12952. Then I've increased the SYSTEM table size by 1M. In such way I got additional 9Mb for the SYSTEM tablespace (from 360Mb to 369Mb 98%). Is any other way to reduce of the SYSTEM tablespace filling?
4. Next (http://wiki.oracle.com/page/Data+Pump+Export+%28expdp%29+and+Data+Pump+Import%28impdp%29)
on the step: $ expdp system/<password> DIRECTORY=expdp_dir DUMPFILE=expfull.dmp FULL=y LOGFILE=expfull.og
i got the error:
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE
ORA-39125: Worker unexpected fatal error in KUPW$WORKER.CREATE_OBJECT_ROWS while calling FORALL [TABLE]
ORA-12952: The request exceeds the maximum allowed database size of 4 GB
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 116
ORA-06512: at "SYS.KUPW$WORKER", line 6248
There is my last state of the tablespace filling:
"Tablespace"; "Size (MB)"; "Free (MB)"; "% Free"; "% Used"
"UNDO"; "500"; "411,6875"; "82"; "18"
"SYSAUX"; "570"; "31,5"; "6"; "94"
"USERS"; "4180"; "178,875"; "4"; "96"
"SYSTEM"; "369"; "1,25"; "0"; "100"
"TEMP"; "291"; "0"; "0"; "100" -
Oracle 10g Database conflicts with HTMLDB
Hai all,
I have encountered a strange conflict when I am trying to work out with Oracle 10g database and the famous HTML DB.
It is like this:
I have a 10g DB installed and an ASP application that works on this 10g instance via "Microsoft ODBC driver for oracle" perfectly.
Now I have downloaded and installed the 10g Companion CD and installed the HTML DB 1.5 along with the mandatory Apache web server. Good!! I could scrawl through the database using the HTML DB, creating applications, forms, items and etc fancy things without any issues.
The problem that I found was:
The ASP based application that used to work initially now is erroring out saying that "TNS could not resolve service name".
I thought that the Listener might be damaged or the ASP site was damaged or the Microsoft ODBC driver files were damaged and several other vauge guessings.
I have tested the issue in several ways (reinstalled oracle, the DB, the ASP Applicaton, re-configurin listener in a variety of ways) but every time installing BLINDLY the companion CD too. Nothing seem to work.
Then I recollected that the same issue I have encountered in the past with the installation of Oracle 8i and Developer 2000, where the TNS listener configured by the former damages the one configured by the later and vice-versa.
Basing on this past reminiscence, I finally stopped installing Companion CD over the Oracle installation and carried out the DB installation and the ASP based app. And everything worked fine.
CAN anybody tell me what is going wrong with these two oracle products(Oralce 10g DB and the HTML DB+Apache)?
WHY always the installation of a CLIENT SW (Developer, HTML DB etc) damages the connection with the database via ODBC drivers?
Many Thanks in advance.
RaviDera Mr. Tyler,
Thanks for your reply...I have implemented the solution that you have given for the TNS Listener conflict and everything works fine...
Here I have one more thing thats not working as I thought. do kindly help me out.
My requirement is to show the list of available storage drives (say C:, d:, e: etc on windows) available on the database server. Let me eloborate my problem well....
i have a Java App that executes a specific SQL script to create a tablespace, a user and the required db objects that my applicaiton needs.
if the Java App runs on the same machine where the oracle instance is running, the Java app pops up a list of available drives on the machine, creates a directory for the tablespace datafiles on the drive selected from the above list box, then runs the script which creates the tablespace and the rest of the things.
But if i run the Java app from another machine on the network, then my BLIND java app is popping up the drives of the local machine but NOT those from the oracle server machine and creates the folder on the local machine but not on the Oracle server and obviously the rest of the phases (tablespace creation itself) are failing as the required folder is not found on the oracle server machine.
the work arounds that i am thinking are:
a) use java ->
get the IP of the oracle server machine ->
use some java api such as java.net, java.io etc ->
create the required folder on the server machine instead of the local machihe
ISSUE: Java network programming is too tough for me(excuse me for this..i am not too good!!)
b) use some oracle sql or pl/sql api s to do the same
ISSUE: not found one!!!!
c) create a java stored procedure/function to get the list of drives of the oracle server and return as a string variable. then call this proc from the Java app once connected to the database....
ISSUE: i have created the SO-CALLEd java func. no compilation or loading errors. but there is no o/p either. but the same code when i run as a java class is showing the desired o/p. here is the code piece...can you please help me out!!!
-------Java Stored Function------
import java.io.*;
public class HDDLister
public static String listDrives()
String rootsList = "Available Roots: ";
try
File[]roots = File.listRoots();
for (int i=0;i<roots.length;i++)
rootsList += roots.toString();
rootsList += "#";
catch(Exception ex)
rootsList = ex.toString();
return rootsList;
-------Command to publish the Funciton-------
CREATE OR REPLACE FUNCTION HDDLISTER
RETURN VARCHAR2
IS
LANGUAGE JAVA
NAME 'HDDLister.listDrives() return java.lang.String';
and finally the point of the problem is, once we show the drives available on the server machine to the user and the user selects a drive, how to create a folder on the server machine???
Thousands of thanks in advance
Ravi -
Does Oracle 10G XE collide with other installed Oracle products?
I have IDS 9i (Forms and Reports 9i) installed on my laptop for use with our remote database. Does Oracle 10G XE do anything with my Oracle home settings?
I have Windows XP SP1 on my laptop.
MikeIf you have Instant Client (or something that bundles the Instant Client, such as ZendCore for Oracle), in your path on Windows, then you will get problems, such as
1) The install spinning
2) SQLPlus crashing when launched
The offending DLL is called oraociei10.dll
Check to see if you have this in your environment. Search will do this for you. If you do, check to make sure that the corresponding directory is not in your path. if it is, then the fix is to remove the offending directory from your path. -
Oracle 10g express: trouble with control file
Hallo,
I have just installed Oracle 10g for Linux; my distro is Fedora core 4. After configuring the environment variables, I try to startup the XE database by invoking sqlplus as oraclexe user. The command fails with this error message:
ORA-00205: error in identifying control file, check alert log for more info
The alert log says that the control file control.dbf is missing, and actually it is, along with every data file and log.
Could anyone give me one hint?
Thanks
Franco Pingioriuser9010964 wrote:
I checked the included documentation but it doesn't provide any details regarding the version of the Personal Edition.There is no reason for separate documentation regarding Personal Edition (PE). PE includes all of the components that are included with Enterprise Edition, as well as all of the options that are available with Enterprise Edition, with the exception of the Oracle Real Application Clusters and management pack. -
Installing Oracle 10g and error with DISPLAY value
Hello, I am instaling Oracle 10g and when I run:
. /runInstaller
this error apear:
Can't connect to X11 window server using :0.0 as the value of DISPLAY variable.
how must I set de DISPLAY variable if I have instaling in a local system?
ThanksCan't connect to X11 window server using :0.0 as the value of DISPLAY variable.you apparently set the display correctly (:0:0) if you are installing locally.
You could do a xhost + as user531326 if you did not start your X session as oracle
Message was edited by:
Laurent Schneider
note that xhost + is not a good security practice, have a look at
http://amath.colorado.edu/computing/unix/x/ -
ORA-04030 On ORACLE 10g RAC database with two nodes as active
OS-HP-AIX 5L(5.3)----IBM
DATABASE-10.2.0.2(10G)
I am getting error "ORA-04030" while executing a query
I have already set the ulimits for oracle account to UNLIMITED
1)STACK----UNLIMITED(BOTH SOFT/HARD LIMITs)
2)DATA----UNLIMITED(BOTH SOFT/HARD LIMITs)
3)MEMORY----UNLIMITED(BOTH SOFT/HARD LIMITs)
4)TIME----UNLIMITED(BOTH SOFT/HARD LIMITs)
step 1:-When I skip the listener then query executes very fine.But when
i go through the listener the "ORA-04030" errors come.
step 2:-Then when i stop and start listener on both the nodes the all
the query works fine.
This thing happens every time the system reboots
Can anyone tell me the solution for this
and why this thing happensThanks for ur immediate response
ORA-04030: out of process memory when trying to allocate 127000 bytes (QERHJ
hash-joi,kllcqas:kllsltba)
ORA-04030: out of process memory when trying to allocate 66184 bytes (pga
heap,kco buffer)
ORA-04030: out of process memory when trying to allocate 127000 bytes (QERHJ
hash-joi,kllcqas:kllsltba)
sql qurry
SELECT
WRK_PERF_ID, WRK_ID, PTY_NA_ID, PTY_ID PTY_ID,
PTY_TYP_CDE, PTY_ROL_TYP_CDE, SOC_CDE2 SOC_CDE,
DECODE(SOC_CDE2,'10','Y',NULL,'N',
NVL(( SELECT NVL(AFL_IND, 'N') FROM pty y WHERE y. IPI_BAS_NR = SOC_CDE2 AND NVL(DEL_FL,'N') = 'N'
AND ROWNUM < 2 ),'N')) AFL_IND,
pDate,
ENTMT_ID, ROL_TYP_CDE, IP_STA_IND_CDE, UNID_ID_FST_NA,
UNID_IP_NA, IP_PAY_STA, REASON, SHR_OWN_PTY_NA_ID,
PGM_STT_DT, PAY DIRIND,
ACTV_OWN_SHR, ACTV_COPY_SHR, CLM_OWN_SHR, CLM_COPY_SHR,
FNC_PTY_RESIGNED_ON_DIS_DT ( PTY_ID,
TO_DATE( DECODE(PTY_TYP_CDE,'WRTMB',
'2004-04-10' ,'AFMBR', '2004-05-10' , '2004-03-10'),'YYYY-MM-DD')) TF
FROM
SELECT WRK_PERF_ID, WRK_ID, PTY_NA_ID, PTY_ID PTY_ID,
PTY_TYP_CDE, PTY_ROL_TYP_CDE, NVL(SOC_CDE2,'0') SOC_CDE2,
DECODE(PTY_TYP_CDE,'WRTMB', '2004-04-10' ,'AFMBR', '2004-05-10' , '2004-03-10') pDATE,
ENTMT_ID, ROL_TYP_CDE, IP_STA_IND_CDE, UNID_ID_FST_NA,
UNID_IP_NA, IP_PAY_STA, REASON, SHR_OWN_PTY_NA_ID,
PGM_STT_DT, PAY_DIR_IND,
SUM(NVL(ACTV_OWN_SHR,0)) ACTV_OWN_SHR,
SUM(NVL(ACTV_COPY_SHR,0)) ACTV_COPY_SHR,
NVL( SUM(NVL(CLM_OWN_SHR,0)),0) CLM_OWN_SHR,
NVL(SUM(NVL(CLM_COPY_SHR,0)),0) CLM_COPY_SHR
FROM
SELECT B.WRK_PERF_ID, B.WRK_ID, B.PTY_NA_ID,
D.PTY_ID , D.PTY_TYP_CDE, D.PTY_ROL_TYP_CDE,
CASE
WHEN D.PTY_ROL_TYP_CDE ='W' OR D.PTY_ROL_TYP_CDE ='P'
THEN
SELECT MIN(soc_cde)
FROM MBRSH_AGR_TER A
WHERE A.pty_id = D.PTY_ID
AND A.STT_DT <= TO_DATE( DECODE(D.PTY_TYP_CDE,'WRTMB', '2004-04-10' ,'AFMBR', '2004-
05-10' , '2004-03-10' ),'YYYY-MM-DD')
AND ( A.END_DT >= TO_DATE( DECODE(D.PTY_TYP_CDE,'WRTMB', '2004-04-10' ,'AFMBR', '2004-05-10' , '2004-03-1
0' ),'YYYY-MM-DD') OR A.END_DT IS NULL)
AND A.INCL_EXCL_IND = 'I'
AND ( A.TIS_CDE = 840 OR
EXISTS (
SELECT 1
FROM CPST_TERR C
WHERE C.CHILD_TIS_CDE = 840
AND C.PARENT_TIS_CDE = A.TIS_CDE
AND NVL(C.DEL_FL, 'N') = 'N'
AND NVL(A.DEL_FL,'N') = 'N'
AND soc_cde NOT IN
SELECT soc_cde
FROM MBRSH_AGR_TER B
WHERE B.pty_id = D.PTY_ID
-- b.soc_cde = a.soc_cde
AND B.STT_DT <= TO_DATE( DECODE(D.PTY_TYP_CDE,'WRTMB', '2004-04-10' ,'AFMBR', '2004-0
5-10' , '2004-03-10' ),'YYYY-MM-DD')
AND (B.END_DT >= TO_DATE( DECODE(D.PTY_TYP_CDE,'WRTMB', '2004-04-10' ,'AFMBR', '2004-05-10' , '2004-03-10'
),'YYYY-MM-DD') OR B.END_DT IS NULL)
AND B.INCL_EXCL_IND = 'E'
AND NVL(B.DEL_FL,'N') = 'N'
AND ( B.TIS_CDE = 840 OR
EXISTS ( SELECT 1
FROM CPST_TERR D2
WHERE D2.CHILD_TIS_CDE = 840
AND D2.PARENT_TIS_CDE = B.TIS_CDE
AND NVL(D2.DEL_FL, 'N') = 'N'
)-- NOT IN
) --w,p end
WHEN D.PTY_TYP_CDE='SOC' THEN D.IPI_BAS_NR
END
) SOC_CDE2,
B.ENTMT_ID, B.ROL_TYP_CDE,
B.IP_STA_IND_CDE, B.UNID_ID_FST_NA, B.UNID_IP_NA, B.IP_PAY_STA, B.REASON, B.SHR_OWN_PTY_NA_ID,
A.PGM_STT_DT, D.PAY_DIR_IND,
ACTV_OWN_SHR, ACTV_COPY_SHR, CLM_OWN_SHR, CLM_COPY_SHR
FROM STG_ACIP_DIST_MODE1 B, STAGING_USAGE_SELECTION_MODE1 A, PTY_NA C, PTY D
WHERE B.WRK_PERF_ID = A.WRK_PERF_ID
AND B.PTY_NA_ID = C.PTY_NA_ID
AND C.PTY_ID = D.PTY_ID
AND A.CALC_RUN_CTL_ID = 279
AND A.DIS_ID = 241
GROUP BY WRK_PERF_ID, WRK_ID, PTY_NA_ID, PTY_ID, PTY_TYP_CDE, PTY_ROL_TYP_CDE,
SOC_CDE2, ENTMT_ID, ROL_TYP_CDE, IP_STA_IND_CDE, UNID_ID_FST_NA,
UNID_IP_NA, IP_PAY_STA, REASON, SHR_OWN_PTY_NA_ID,
PGM_STT_DT, PAY_DIR_IND
order by WRK_PERF_ID, WRK_ID, PTY_NA_ID, PTY_ID
It is just a simple query with group by which i ran by sqlplus but it is geting more then million records. -
Host Credential Problem in Oracle 10g on Linux with EMdbconsole HELP!!!!
Please help.
I'm trying since five days I cannot find solutions.
When I try to put the preferred credentials in enterprise manager I get the error:
"Connection to host localhost as user oracle failed: Cannot locate EMD for target localhost, type host."
I've tried with root and oracle user with the same result.
I'm running EM dbcontrol NOT grid control.
Also in em I cannot see the name of the listener and host in General section.
Please HELP!!!
Many, many thanks.
Nicola.Many thanks again.
Here the emoms.trc file:
2005-12-06 02:08:50,590 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.sysman.ias.ias.IASIntegration
2005-12-06 02:08:51,452 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.sysman.eml.target.slb.common.SLBIntegration
2005-12-06 02:08:52,011 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.sysman.eml.ssl.intg.SSLIntegration
2005-12-06 02:08:52,181 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.tip.oem.central.domain.ProcessConnectDomainIntg
2005-12-06 02:08:52,185 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.tip.oem.central.instance.ProcessConnectInstanceIntg
2005-12-06 02:08:52,190 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.webdb.admin.em.PortalIntegration
2005-12-06 02:08:52,194 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.webdb.admin.em.SSOIntegration
2005-12-06 02:08:52,199 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.reports.em.RepIntg
2005-12-06 02:08:52,206 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsEmailIntegration
2005-12-06 02:08:52,210 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOidIntegration
2005-12-06 02:08:52,215 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOvfIntegration
2005-12-06 02:08:52,220 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWebconfIntegration
2005-12-06 02:08:52,225 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWirelessIntg
2005-12-06 02:08:52,244 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsCalGrpIntegration
2005-12-06 02:09:01,110 [JobWorker 319:Thread-14] ERROR em.jobs executeCommand.159 - UpdateARUTables: Oracle MetaLink credentials are incorrect or missing. Click Patching Setup to set required parameters.
2005-12-06 02:09:41,344 [JobWorker 360:Thread-15] ERROR ping.ProcessExecutor execute.299 - timeout while gathering output
2005-12-06 02:09:41,454 [JobWorker 360:Thread-15] ERROR jobs.pingCfmEMDDown pingHost.439 - TimeoutException caught pinging the host for EMD URL http://localhost:1831/emd/main
2005-12-06 02:10:32,085 [MetadataLoad http://localhost:1831/emd/main:A0000000001.dat] ERROR eml.XMLLoader markFileAsError.730 - Failed to load A0000000001.xml because of errors; moving to errors directory
2005-12-06 02:10:51,202 [XMLLoader0 30000000003.xml] ERROR emdrep.XMLLoaderContext loadFromStream.1098 - Error while loading : java.sql.SQLException: ORA-20206:
ORA-06512: at "SYSMAN.ECM_CT", line 298
ORA-01403: no data found
ORA-06512: at line 1
java.sql.SQLException: ORA-20206:
ORA-06512: at "SYSMAN.ECM_CT", line 298
ORA-01403: no data found
ORA-06512: at line 1
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:625)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:180)
at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:783)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1095)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2901)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2992)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4124)
at oracle.sysman.util.jdbc.PreparedStatementWrapper.execute(PreparedStatementWrapper.java:622)
at oracle.sysman.emdrep.dbjava.loader.XMLDocumentSplitter.preLoadProc(XMLDocumentSplitter.java:1327)
at oracle.sysman.emdrep.dbjava.loader.XMLDocumentSplitter.startElement(XMLDocumentSplitter.java:639)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1181)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:300)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:267)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
at oracle.sysman.emdrep.dbjava.loader.XMLDocumentSplitter.split(XMLDocumentSplitter.java:372)
at oracle.sysman.emdrep.dbjava.loader.XMLLoaderContext.loadFromStream(XMLLoaderContext.java:1074)
at oracle.sysman.emdrep.dbjava.loader.XMLLoader.LoadFile(XMLLoader.java:440)
at oracle.sysman.emdrep.dbjava.loader.XMLLoader.LoadFiles(XMLLoader.java:593)
at oracle.sysman.emdrep.dbjava.loader.XMLLoader.run(XMLLoader.java:1146)
at java.lang.Thread.run(Thread.java:534)
2005-12-06 02:10:51,252 [XMLLoader0 30000000003.xml] ERROR eml.XMLLoader markFileAsError.730 - Failed to load 30000000003.xml; moving to errors directory
2005-12-06 02:10:51,259 [XMLLoader0] ERROR eml.XMLLoader run.1180 - Exception caught while loading: ORA-20206:
ORA-06512: at "SYSMAN.ECM_CT", line 298
ORA-01403: no data found
ORA-06512: at line 1
java.sql.SQLException: ORA-20206:
ORA-06512: at "SYSMAN.ECM_CT", line 298
ORA-01403: no data found
ORA-06512: at line 1
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:625)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:180)
at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:783)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1095)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2901)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2992)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4124)
at oracle.sysman.util.jdbc.PreparedStatementWrapper.execute(PreparedStatementWrapper.java:622)
at oracle.sysman.emdrep.dbjava.loader.XMLDocumentSplitter.preLoadProc(XMLDocumentSplitter.java:1327)
at oracle.sysman.emdrep.dbjava.loader.XMLDocumentSplitter.startElement(XMLDocumentSplitter.java:639)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1181)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:300)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:267)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
at oracle.sysman.emdrep.dbjava.loader.XMLDocumentSplitter.split(XMLDocumentSplitter.java:372)
at oracle.sysman.emdrep.dbjava.loader.XMLLoaderContext.loadFromStream(XMLLoaderContext.java:1074)
at oracle.sysman.emdrep.dbjava.loader.XMLLoader.LoadFile(XMLLoader.java:440)
at oracle.sysman.emdrep.dbjava.loader.XMLLoader.LoadFiles(XMLLoader.java:593)
at oracle.sysman.emdrep.dbjava.loader.XMLLoader.run(XMLLoader.java:1146)
at java.lang.Thread.run(Thread.java:534)
2005-12-06 02:10:51,292 [XMLLoader0] WARN eml.XMLLoader run.1227 - Rolling back transaction.
2005-12-06 02:14:14,164 [EMUI_02_14_13_/console/pref/setCredentials$targetType=oracle*_database] ERROR creds.SetPrefCreds saveCreds.1070 - SetPrefCreds.saveCreds(): SQLException: ORA-01403: no data found
ORA-06512: at "SYSMAN.MGMT_CREDENTIAL", line 115
ORA-06512: at "SYSMAN.MGMT_CREDENTIAL", line 202
ORA-06512: at "SYSMAN.MGMT_CREDENTIAL", line 334
ORA-06512: at "SYSMAN.MGMT_CREDENTIAL", line 965
ORA-06512: at "SYSMAN.MGMT_CREDENTIAL", line 1082
ORA-06512: at line 1
2005-12-06 02:14:41,068 [EMUI_02_14_40_/console/pref/setCredentials$targetType=oracle*_database] ERROR creds.SetPrefCreds testCreds.1281 - SetPrefCreds.testCreds(): CredsException: Connection to host localhost as user oracle failed: Cannot locate EMD for target localhost, type host.
2005-12-06 02:17:23,825 [EMUI_02_17_23_/console/pref/setCredentials$targetType=oracle*_database] ERROR creds.SetPrefCreds testCreds.1281 - SetPrefCreds.testCreds(): CredsException: Connection to host localhost as user oracle failed: Cannot locate EMD for target localhost, type host.
2005-12-06 02:23:22,261 [CacheManager] ERROR cache.CacheManager run.519 - Exception message: sleep interrupted
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at oracle.sysman.emSDK.svc.cache.CacheManager$Checker.run(CacheManager.java:507)
at java.lang.Thread.run(Thread.java:534)
2005-12-06 16:20:44,073 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.sysman.ias.ias.IASIntegration
2005-12-06 16:20:44,834 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.sysman.eml.target.slb.common.SLBIntegration
2005-12-06 16:20:45,150 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.sysman.eml.ssl.intg.SSLIntegration
2005-12-06 16:20:45,307 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.tip.oem.central.domain.ProcessConnectDomainIntg
2005-12-06 16:20:45,312 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.tip.oem.central.instance.ProcessConnectInstanceIntg
2005-12-06 16:20:45,316 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.webdb.admin.em.PortalIntegration
2005-12-06 16:20:45,320 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.webdb.admin.em.SSOIntegration
2005-12-06 16:20:45,325 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.reports.em.RepIntg
2005-12-06 16:20:45,332 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsEmailIntegration
2005-12-06 16:20:45,338 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOidIntegration
2005-12-06 16:20:45,343 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOvfIntegration
2005-12-06 16:20:45,357 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWebconfIntegration
2005-12-06 16:20:45,362 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWirelessIntg
2005-12-06 16:20:45,371 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.265 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsCalGrpIntegration
2005-12-06 16:22:10,392 [MetadataLoad http://localhost:1831/emd/main:A0000000001.dat] ERROR eml.XMLLoader markFileAsError.730 - Failed to load A0000000001.xml because of errors; moving to errors directory
Regards,
Nicola. -
Calling Oracle 10g Stored Proc with Assoc Array from C# VS 2008
I have the following PL/SQL procedure:
CREATE OR REPLACE PROCEDURE HMA_ADM.PRC_VDM_SAVDEL_VEN_DOC
P_OP IN VARCHAR2,
P_USRID IN TB_VDM_MANAGE_DOCUMENTS.CREATEDBY%TYPE,
P_DATE IN VARCHAR2, -- HAS TO BE STRING, ELSE WE GET AN ERROR
P_DOCNAM IN TB_VDM_MANAGE_DOCUMENTS.DOCUMENT_NAME%TYPE,
P_DOCLNK IN TB_VDM_MANAGE_DOCUMENTS.DOCUMENTLINK%TYPE,
P_FNGUID IN TB_VDM_MANAGE_DOCUMENTS.FILENET_GUID%TYPE,
P_DESC IN TB_VDM_MANAGE_DOCUMENTS.DESCRIPTION%TYPE,
P_REQID IN VARR
) IS
Where VARR is:
CREATE OR REPLACE TYPE VARR IS TABLE OF INTEGER;
In C# I have the following code:
int64[] intReqID;
OracleCommand cmdVDL = new OracleCommand(DBQueries.SPQRY_SAVDELVENDOC, connDB);
cmdVDL.CommandType = CommandType.StoredProcedure;
cmdVDL.Parameters.Add(new OracleParameter("P_OP", strOP));
cmdVDL.Parameters.Add(new OracleParameter("P_CREATEBY", strUID));
cmdVDL.Parameters.Add(new OracleParameter("P_CREATEDATE", strDate));
cmdVDL.Parameters.Add(new OracleParameter("P_DOCNAM", strDocNam));
cmdVDL.Parameters.Add(new OracleParameter("P_DOCLNK", strURL));
cmdVDL.Parameters.Add(new OracleParameter("P_FNGUID", strGUID));
cmdVDL.Parameters.Add(new OracleParameter("P_DESC", strDesc));
cmdVDL.Parameters.Add(new OracleParameter("P_REQID", OracleDbType.Int64) {
CollectionType = OracleCollectionType.PLSQLAssociativeArray,
Size = intReqID.Count(),
Value = intReqID,
DbType = DbType.Int64,
OracleDbType = OracleDbType.Int64
OracleParameterStatus[] stat = new OracleParameterStatus[intReqID.Count()];
for (i = 0; i < intReqID.Count(); i++) {
stat[i] = OracleParameterStatus.Success;
cmdVDL.Parameters["P_REQID"].ArrayBindStatus = stat;
cmdVDL.ExecuteNonQuery();
When I run this I get the following error:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'PRC_VDM_SAVDEL_VEN_DOC'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
If I remove the Associative Array from both, the procedure runs fine.
What am I doing wrong?Additionally,
1) UDT support requires 11106.20 or higher ODP (but can be used against 10g db)
2) if the plsql is changeable, you may want to swap it to associative array instead to avoid having to create custom classes for the UDT, and here's a short sweet example.
Greg
CREATE or replace PACKAGE MYPACK3 AS
TYPE numarray is table of number index by BINARY_INTEGER;
PROCEDURE getempsinarray(thearray IN numarray, numrecs out number);
END MYPACK3;
CREATE or replace PACKAGE BODY MYPACK3 AS
PROCEDURE getempsinarray(thearray IN numarray, numrecs out number)
IS
begin
numrecs := thearray.count;
END getempsinarray;
END MYPACK3;
using System;
using System.Data;
using Oracle.DataAccess.Client;
public class indexby
public static void Main()
OracleConnection con = new OracleConnection("data source=orcl;user id=scott;password=tiger;");
con.Open();
OracleCommand cmd = new OracleCommand("mypack3.getempsinarray", con);
cmd.CommandType = CommandType.StoredProcedure;
OracleParameter Param1 = cmd.Parameters.Add("param1", OracleDbType.Int32);
Param1.Direction = ParameterDirection.Input;
Param1.CollectionType = OracleCollectionType.PLSQLAssociativeArray;
Param1.Value = new int[3]{7369,7499, 7521};
Param1.Size = 3;
OracleParameter Param2 = cmd.Parameters.Add("param2", OracleDbType.Int32, DBNull.Value, ParameterDirection.Output );
cmd.ExecuteNonQuery();
Console.WriteLine("{0} records passed in",Param2.Value);
con.Close();
}
Maybe you are looking for
-
How to adjust output in sqlplus
Hi I want to take a report from the below query from unix sqlplus. However the output of the query is not tidy. I used set linesize 121, but it doesnt work again.Any other suggestion? select tb.owner,count(*) "current_extents",ex.segment_name,tb.max_
-
Why am I unable to sign in to app store or iTunes store?
I am unable to sign into my apple ID to use app store because it says the ID hasn't been used in ITunes store. But it won't let me do that either.
-
I only have 5 fonts showing up in the font library in dvdsp4. My fonts are enabled and there are a list of them in font book. What am I missing?
-
When I connect my phone to itunes, it connects but cannot read my phone. Not sure why this happened. It's telling me to restore. When I click on the restore tab, I get an error message saying not able to connect to the apple server. I've got the late
-
Periodically (frequently), I receive the message that advises an update to Firefox is available. (The current version is 14.0.1; and I am using a MacBook Pro OS X, version 10.7.5.) However, when I "Install" and it gives me an "Installing" message, I