I have a requirement to reformat some data elements that consist of two numbers separated by a hyphen e.g. 123-456. I have written a function to get the first number but it compiles with a warning.
CREATE OR REPLACE FUNCTION get_lowernumber
(housenumber varchar2)
RETURN varchar2
IS
v_hyphen number;
[code].......
i am new to oracle,when i am compiling below procedure,
create or replace procedure GetTempPolicyDetails2(i_officeid in number,pr_cursor out SYS_REFCURSOR) as
L_QUEY VARCHAR2(4000):= 'select POLTMP.POLICY_ID,POLTMP.CORPORATE_NAME,POLTMP.POLICY_FROM_DATE,POLTMP.POLICY_TO_DATE, POLTMP.NETPREMIUM_WITH_SERVICE_TAX, IOF.OFFICENAME,UW.NAME,REG.REGNAME,brmstr.brokername,created_on from policies_temp POLTMP INNER JOIN ISSUINGOFFICE IOF ON IOF.ID=POLTMP.Divisionid INNER JOIN REGION REG ON REG.ID=IOF.RID INNER JOIN underwriters UW ON UW.ID=REG.UWID LEFT OUTER JOIN broker_master BRMSTR ON BRMSTR.ID=POLTMP.Broker_Name where POLTMP.Policy_Status=1 where 1=1' L_WHERE VARCHAR2(4000):='WHERE 1=1'; [code]....
I'm getting the following error on a procedure that I was able to compile until today after some changes.
ORA-06550: line 354, column 20: PLS-00103: Encountered the symbol "AND" when expecting one of the following: . then or The symbol ". was inserted before "AND" to continue.
I am trying to resolve by using a cursor C2 inside the already existing cursor C1, i will use a inner loop to get the select statement value to cursor c2 then i will assign the vlaues the variables, then once i read all the values of cursor c2 i will exit inner loop and go to outer loop to read the next value of c1 and then again go to cursor c2 and inner loop.
I have pasted the code below.
Declare temp1 source.source%type; temp2 QUOTE_LETTERS_MASTER%rowtype; Cursor c1 is Select * from Source;
I ran into the message RMAN-08138: WARNING: archived log not deleted - must create more backups during a backup. From what I understand this is caused when logs are removed that are needed for recovery.
rman target / nocatalog <<EOT CONFIGURE CHANNEL DEVICE TYPE DISK clear ; CONFIGURE CHANNEL DEVICE TYPE TAPE clear ; CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' clear ; CONFIGURE RETENTION POLICY TO recovery window of 14 days; CONFIGURE BACKUP OPTIMIZATION OFF; CONFIGURE DEFAULT DEVICE TYPE TO DISK;
Up until today we assumed that compiling a package BODY-only would not cause invalidation of other code. However when we compiled the body of the HTP package, the OWA package became invalid and required re-compilation.
Oracle Database 10g Release 10.2.0.4.0 - 64bit Production PL/SQL Release 10.2.0.4.0 - Production CORE10.2.0.4.0Production TNS for Linux: Version 10.2.0.4.0 - Production NLSRTL Version 10.2.0.4.0 - Production
I am getting this err ora-31640 while compling a menu in forms6i and when i have searched in oracle it is giving in forms 6i shared submenu's are not supported.
I have a form, using views which has tables from other databases.
e.g. :my database name is G1 here i have a view
MR_HEAD
CREATE OR REPLACE VIEW MR_HEAD AS SELECT "MR_HEAD_KEY","MR_TRAN_TYPE","MR_NO","MR_DATE","PO_TYPE","PO_NO","VENDOR_CODE", "MODIFY_FLAG","SUPERSEDE_FLAG","REF_MR_HEAD_KEY","PO_KEY","PO_DATE","REJECTION_NO", "USER_ID","LAST_UPD_DATE" FROM INMATMAS.MR_HEAD@SPICFIN
i am linking my database G1 with Above Database. so after using this in my form as
'INMATMAS.mr_head@DB_OPTIMAT'[/email]
for insert/select. i cant able to compile it. form closes immediately when i compile this.
i'm keep on getting below error every morning in my Database.this indicate in Grid control every morning.
Metrics "Database Time Spent Waiting (%)" is at 34.336 for event class "Concurrency" Metrics "Database Time Spent Waiting (%)" is at 100 for event class "Other" Metrics "Database Time Spent Waiting (%)" is at 44.78 for event class "Other"
i need to know, this is something that i should consider as a critical warning and how can i solve this .
I have 2 blocks, block 1 which is the master and block 2 which is the detail. Both block 1 and block 2 are multi record blocks. For my form I want to display a warning message to the user if they create a master block without also creating a detail.
SQL > conn ashish/pass@conn_string ERROR: ORA-28002: the password will expire within 1 days ---------------------------------------------------------- I want to catch this eror in forms: catch the error code ORA-28002 in ON-ERROR trigger and ON-Message trigger, however its not getting caught in the trigger. how to catch the warning/error ORA-28002 in oracle forms?
I have one primary database server and one physical standby database serve. but i am unable to fix "ORA-16607" while enabling configuration. during log switch redo data is being applied to the phy standby side but some thing wrong happens in BROKER
here are details........about my configuration
Primary database name PRIM Physical Database Name STAN net service PRIM net service STAN
DGMGRL> show configuration
Configuration Name: test Enabled: YES Protection Mode: MaxPerformance Fast-Start Failover: DISABLED Databases: prim - Primary database stan - Physical standby database
Current status for "test": Warning: ORA-16607: one or more databases have failed
====================================================== Alert log file First para show no problem for for redo to be transmitted to stndby ====================================================== LNS1 started with pid=48, OS id=5408 Thu Sep 21 21:32:03 2006 Thread 1 advanced to log sequence 59 Current log# 1 seq# 59 mem# 0: /u01/app/oracle/oradata/PRIM/redo01.log
OS read hat, oracle enterprise edition 11g release 2, dataguard 2 physical standby's
everything works fine but since 1 day we get following warnings from dataguard on the primary server:
SELECT * FROM V$DATAGUARD_STATUS;
FACILITY SEVERITY DEST_ID MESSAGE_NUM ERROR_CODE CAL TIMESTAM ------------------------ ------------- ---------- ----------- ---------- --- -------- MESSAGE ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Log Transport Services Warning 0 309911 0 NO 01.11.12 RTC returned 2, disabling RTC for next 2 I/Os.
in the alert log it looks like this:
RTC returned 2, disabling RTC for next 2 I/Os. Thu Nov 01 12:09:46 2012 RTC returned 2, disabling RTC for next 2 I/Os. Re-enabling RTC following backoff interval 2. Re-enabling RTC following backoff interval 2. RTC returned 2, disabling RTC for next 2 I/Os. RTC returned 2, disabling RTC for next 2 I/Os. Re-enabling RTC following backoff interval 2. Re-enabling RTC following backoff interval 2. Thu Nov 01 12:11:16 2012 RTC returned 2, disabling RTC for next 2 I/Os. Re-enabling RTC following backoff interval 2.
I see following warning message in alert log file.
Quote:WARNING: OMF is enabled on this database. Creating a physical standby controlfile, when OMF is enabled on the primary database, requires manual RMAN intervention to resolve OMF datafile pathnames.
NOTE: Please refer to the RMAN documentation for procedures describing how to manually resolve OMF datafile pathnames.
Is it just an information or something like warning message we need to look into it.
I've inherited a 10.2 instance here in Kuwait and I'm attempting to migrate to a brand new server; I downloaded and attempted to install 11gR2 (11.2.0.1.0) on my brand new HP clean and patched server running Windows 2008 R2 Enterprise.
I've tried clean install, re-install, install software first then database, install all together, a complete default install (other than putting the database on a different drive letter)... every time I get the same error-
Enterprise manager configuration succeeded with the following warning -
Error starting database control. Please execute the following command(s)
1) Set the environment variable ORACLE_UNQNAME to database unique name
2) ...emctl start dbconsole
There is plenty about this on the internet, google, forums. Some suggest dropping and reconfig of EM; tried that. One error leads to another error and I think I'm getting close, then some other error, more obscure than the last. VERY FRUSTRATING!
- Is this distribution broken?
- Should I try the 32-bit or just install and run the 10.2 on my brand new 64-bit server (that kinda hurts my head but I bet it would work!)
I've tried numerous re-boots, several fresh clean installs (after using the Oracle uninstaller and cleaning out the registry and deleting old files), I've set every environmental variable that I can in the system variables section including ORACLE_HOSTNAME, ORACLE_SID and ORACLE_UNQNAME.
I've tried unlocking SYSTEM and SYSMAN user accounts, I've deconfig'd the EM and have recreated the repository, reconfig'd...
Database is installed and working find. SQL plus is working and fine. It's just EM that's broken and I... just... can't... fix... it.Web page for EM starts just fine... log in (oddly, won't let me log in as SYSDBA from the web) then throws this error:
Error Internal Error has occurred. Check the log file for details.
The log files are pages long and I'm not sure what I'm looking at.
- Install different distro (like the 32-bit 11g)
- Install 10.2 and get on with my life- maybe upgrade later
We are porting our application from HP-UX to Sun Solaris and as part of that I am trying the compile a Pro*C program in Sun Solaris using SUNWspro C++ compiler. Precompiling is failing with following error.
System default option values taken from: /u01/app/oracle/product/10.2.0/precomp/admin/pcscfg.cfg
Syntax error at line 44, column 30, file /u01/app/SUNWspro/prod/include/CC/stlport4/algorithm: Error at line 44, column 30 in file /u01/app/SUNWspro/prod/include/CC/stlport4/a lgorithm # include _STLP_NATIVE_HEADER(algorithm) .............................1 PCC-S-02014, Encountered the symbol "(" when expecting one of the following:
[code]...
Normal C++ files are getting compiled with out eny issues. This particular file is having functions written in C fashion.
Above query runs perfectly on SQL prompt.Same query, when being run in a Pro*C program gives compilation error-:
Error at specified line:
,( SELECT D.V3 FROM TABLE2 D WHERE D.V3 = C.V4) .............................1 PCC-S-02201, Encountered the symbol "D" when expecting one of the following: ( ) * + - / . @ | at, day, hour, minute, month, second, year,
What are the possbile causes of error. I am using Oracle 10g on Unix.
how to grant compile access for stored procedures..? I got execute access so that i can execute procedure from another user but not able to save/modify once i edited.
i am trying to compile using SQL developer. Error Message :Error: ORA-01031: insufficient privileges
I could see in teh log lot of IMP-00041: Warning: object created with compilation warnings
example: IMP-00041: Warning: object created with compilation warnings "CREATE FORCE VIEW "ARADMIN"."BMC_CORE_BMC_IMPACT" (" ""REQUESTID","SUBMITTER","CREATEDATE","ASSIGNEDTO","LASTMODIFIEDBY","MODIFIE" "DDATE","STATUS","SHORTDESCRIPTION","CMDBROWLEVELSECURITY","INSTANCEID","CMD"