ORA-00469 daily
Hi all
I have three on the production servers 10.2.0.1.0 oracle instance, our application is connecting to these databases with dblinks Transact.
I must say that these three instances have a heavy use of dblinks and synonyms normally.
Since a certain month im getting ORA-00469 too often on one instance when the rman backup is in progress.
First there was once a week on the db instance 1, then he became twice in three days. Now its has begun pending 3 also.
Help, please.
What magic solution expect you or desire from here?
Nobody here can change the behavior of the Oracle substantive meetings as CONTROL point.
You have probably a bug in Oracle itself.
IMO, your choice is limited to below
(1) living with what you have.
(2) Oracle upgrade to a version where the bug has been fixed.
If you have more, better, or different opinions, we will discuss.
Tags: Database
Similar Questions
-
ORA-19504: cannot create the file '+ DATA '.
Hello everyone.
This is the scenario:
We have a test server that is used to restore daily backups of the Production database. Restore us the database with the same SID as the production one.
For specific reasons, we need create a second database (with a different SID) on this server with an older backup from the production one. To realize that I'm trying to use a part of the "DUPLICATE without connection to the target" tutorials on the web.
I tried the simple guide that I found which is:
(1) copy the backup files cold /somedirectory
(2) start OLD database with nomount
(3) connect RMAN with OLDER as an auxiliary
(4) run the following: DUPLICATE DATABASE FOR OLD BACKUP LOCATION ' / somedirectory' NOFILENAMECHECK.
Here's the result (I deleted some lines because of the size of it):
----------------------
RMAN > ProdDB to OlderDB DUPLICATE DATABASE
2 > LOCATION of BACKUP "/ home/oracle/OlderBackupFiles.
3 > NOFILENAMECHECK.
4 >
From October 1, 14 Db double
content of Script memory:
{
clone of SQL 'alter system set control_files =
"+DATA/OlderDB/controlfile/current.829.859839217" comment =
' Set by RMAN "scope = spfile;
clone of SQL 'alter system set = db_name
"ProdDB" comment =
' Modified by RMAN duplicate "scope = spfile;
clone of SQL 'alter system set db_unique_name =
"OlderDB" comment =
' Modified by RMAN duplicate "scope = spfile;
clone to stop immediately;
Start clone force nomount
Restore controlfile primary clone of ' / home/oracle/OlderDB/controlfile_ProdDB_20141001_4159.bkp';
change the clone database mount;
}
execution of Script memory
SQL statement: alter system set control_files = comment "+DATA/OlderDB/controlfile/current.829.859839217" = "defined by RMAN" scope = spfile
SQL statement: change the system db_name set = comment "ProdDB" = "modified by RMAN duplicate" scope = spfile
SQL statement: alter system set db_unique_name = comment "OlderDB" = "modified by RMAN duplicate" scope = spfile
(...)
From restoration to 1 October 14
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID = 191 type device = DISK
channel ORA_AUX_DISK_1: restore the control file
channel ORA_AUX_DISK_1: restoration complete, duration: 00:00:03
output file name=+DATA/OlderDB/controlfile/current.829.859839217
Restoration finished in October 1, 14
mounted database
output channel: ORA_AUX_DISK_1
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID = 191 type device = DISK
content of Script memory:
{
until the SNA 274262921.
the value of newname for datafile clone 1 again;
the value of newname for datafile clone 2 again.
the value of newname for datafile clone 3 again.
the value of newname for datafile clone 4 new ones;
the value of newname for datafile clone 5 again.
the value of newname for datafile clone 6 again.
the value of newname for datafile clone 7 again.
restoration
database clone;
}
(...)
From restoration to 1 October 14
using the ORA_AUX_DISK_1 channel
channel ORA_AUX_DISK_1: from the restore backup set data file
channel ORA_AUX_DISK_1: specifying datafile (s) to restore from backup set
channel ORA_AUX_DISK_1: restore datafile 00001 to + DATA
channel ORA_AUX_DISK_1: restore datafile 00002 to + DATA
channel ORA_AUX_DISK_1: restore datafile 00003 to + DATA
channel ORA_AUX_DISK_1: restore datafile 00004 in + DATA
channel ORA_AUX_DISK_1: restore datafile 00005 to + DATA
channel ORA_AUX_DISK_1: restore datafile 00006 to + DATA
channel ORA_AUX_DISK_1: restore datafile 00007 to + DATA
channel ORA_AUX_DISK_1: reading from the backup /home/oracle/OlderDB/database_ProdDB_20141001_4157.bkp piece
channel ORA_AUX_DISK_1: ORA-19870: error when restoring the backup /home/oracle/OlderDB/database_ProdDB_20141001_4157.bkp piece
ORA-19504: cannot create the file '+ DATA '.
ORA-17502: ksfdcre:4 cannot create the file + DATA
ORA-15041: diskgroup space 'DATA' exhausted
switch to the previous backup
Oracle instance started
(...)
content of Script memory:
{
clone of SQL 'alter system set = db_name
"OlderDB" comment =
' Restore the original value by RMAN "scope = spfile;
clone of SQL 'alter system reset db_unique_name scope = spfile;
clone to stop immediately;
}
execution of Script memory
Errors in the script of the memory
RMAN-03015: an error has occurred in the script stored memory Script
RMAN-06136: the auxiliary database ORACLE error: ORA-01507: database not mounted
ORA-06512: at "SYS." "X$ DBMS_RCVMAN ', line 13466
ORA-06512: at line 1
RMAN-05556: not all data files have backups can be recovered on SNA 274262921
RMAN-03015: an error has occurred in the script stored memory Script
RMAN-06026: some targets not found - abandonment of restoration
RMAN-06023: no backup or copy of the file 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command duplicate Db at 15:39:11 01/10/2014
RMAN-05501: abandonment of duplicate target database
Complete recovery manager.
------------------------------------------------------------------
The first mistake of the stack was ORA-19504 while trying to restore the backup of the database.
First thing I took a glance was ASM occupation but it enough available space.
The second was a permission problem, but it doesn't seem to be the case because RMAN can correctly write the controlfile to ASM.
One have some advice on what I should look for?
Thanks in advance sorry for my English.
Select this option.
Hello.
Thanks, but is not the case. As I have said, that the DATA diskgroup has space enough he uses only a single disk in a RAID.
But I solved my problem... To the auxiliary database, I added the following to the spfile:
DB_FILE_NAME_CONVERT = '+ DATA/ProdDB', '+ DATA/OlderDB ".
LOG_FILE_NAME_CONVERT = '+ DATA/ProdDB', '+ DATA/OlderDB ".
I don't know why, but with these two clauses, it worked well. Perhaps RMAN was trying to restore it to the wrong place?
-
I tried to create a window to test the activation of plans of RM. But I get this error.
SQL > EXECUTE dbms_scheduler.create_window.
> (-)
> window_name = > 'day ', -.
> resource_plan = > 'my_plan ', -.
> start_date = > systimestamp + 1 /(24*60).
> repeat_interval = > ' freq = > daily '.
> time = > ' 0 01:00:00 '.
> Comments = > ' C know if it works without a job "-"
>);
BEGIN dbms_scheduler.create_window (window_name = > 'day', resource_p)
LAN = > 'my_plan', start_date = > systimestamp + 1 /(24*60), repeat_interv
Al = > ' freq = > daily ', duration = > ' 0 01:00:00 ', comments = > ' C so she
works without employment '); END;
*
ERROR on line 1:
ORA-27481: 'SYS '. "' DAY ' has an invalid schedule
ORA-27418: syntax error in the interval of recurrence or calendar
ORA-06512: at "SYS." DBMS_ISCHED", line 486
ORA-06512: at "SYS." DBMS_SCHEDULER', line 1295
ORA-06512: at line 1
I have tried many tips found on the web, nothing works.
Any help would be greatly appreciated.
Also, can you pls tell me if this command run once automatically activates the my_plan after 1 minute, 1 minute, after which, it will disable the my_plan? So, you do not need to create a JOB for this. If you create a window, that is, as a job creation to enable an RM plan?
2734369 wrote:
Wow, discovered the issue: the repeat interval is broken (I use a database of 12.1 in Windows 7). It must be uppercase. Very surprising in the windows to be case-sensitive.
SQL >
SQL > EXECUTE dbms_scheduler.create_window.
> (-
> window_name-online 'day ', -.
> resource_plan-online 'my_plan ', -.
> start_date-online systimestamp + 1 /(24*60).
> repeat_interval-online ' FREQ = DAILY; BYHOUR = 10; BYMINUTE = 30', -.
> time-online ' 0 01:00:00 '.
> Comments => ' C know if it works without a job "-"
> );
PL/SQL procedure successfully completed.
Problem is, after 1 minute, always that the plan is not activated?
SQL > SEE THE RESOURCE_MANAGER_PLAN PARAMETER
VALUE OF TYPE NAME
------------------------------------ ----------- ----------------------
resource_manager_plan chain
Why the Plan is not activated after 1 minute. Have we not create a job (I don't think).
I think you misunderstand the meaning of "start_date". Please see the documentation on what this means exactly.
This attribute specifies the first date and time where it is scheduled to open in this window. If the value
start_date
specified is in the past or is not specified, the window opens, from its inception.To repeat windows using an expression of the calendar to specify the repetition interval, the value of
start_date
is a reference date. The first time the window opens depends on the specified repeat interval and the value ofstart_date
.(From Types and Oracle® packages of PL/SQL Database 11g Release 2 (11.2) reference E40758-03); dbms_scheduler, create_window. DBMS_SCHEDULER
Once you have done this, you will see that it is pretty useless to specify that you have.
Your repeat_interval said "every day at 10:30.
-
ORA-16171: RECOVER... FINISHING unauthorized
Hi all
11.2.0.3.11
AIX6
Assuming you meet disaster and the primary is deleted, then you failover to your waiting DG.
It is possible that you end - up nothing?
SQL > ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH
*
ERROR on line 1:
ORA-00283: cool cancelled due to errors
ORA-16171: RECOVER... FINISHING not allowed away for thr 1, seq 983-983
Thank you
MK
Yes of course. Never heard of Murphy's law?
A good DBA is aware of Murphy and arms himself against Murphy.
This procedure begins by
reading documentation
and implementation of the procedures described here.
It does not start with daily alerts of surveillance with home grown scripts written by others, so Oracle is already able to do.
And Yes, there are * described * resolution of the gap and the gap detection procedures.
But everyone here knows that the situation in your store leaves much to be desired and that the staff is a HUGE factor in this.
Sybrand Bakker
Senior Oracle DBA
-
Data Guard of database status is error ORA-01031: insufficient privileges.
Hi DBAs,
I spotted this error while doing daily morning DB health check-ups.
"The status of Data Guard of ZEUSDB is error ORA-01031: not sufficient privileges."
I tried Googling, but this error is related to a lot of things so impossible to find the exact solution.
Kind regards
Ritu
No, we don't know the sleep state. You can watch the alert.log from the night before to see if it is actively applying redo/archivelogs. You can query V$ DATAGUARD_STATUS on the day before.
If you have installed and configured broker DataGuard, it can monitor the day before.
If you use a script, make sure that it is configured to connect properly the SYSDBA privilege and password (or a local connection on the standby server - that would be my preference).
Hemant K Collette
-
Hi all
your help is greatly appreciated...
Calling B.fucntion inside an A.fonctions to insert data into a table.
Here when you call the B.fucntion to insert data in the table... receiver AM a mistakeOmitted in B - SQL Error: ORA-14551: cannot perform a DML operation inside a query...
Can someone please help me to clarify this...
The FUNCTION A(varUPD_TYPE IN VARCHAR2) RETURN VARCHAR2 IS
varRETURN_VALUE VARCHAR2 (25): = NULL;numALLOWED_COUNT PROD. PROCESS_COUNTER. TYPE % ALLOWED_COUNT;
numLAST_COUNT_ADDED PROD. PROCESS_COUNTER. TYPE % LAST_COUNT_ADDED;
dtCHANGE_DATE DATE: = NULL;
varSTMT VARCHAR2 (2000);
bln_Allowed BOOLEAN;
myVar VARCHAR2 (32767).
BEGINIF varUPD_TYPE = "A" THEN
BEGIN
SELECT CH_DATE, LAST_COUNT_ADDED, ALLOWED_COUNT
IN dtCH_DATE, numLAST_COUNT_ADDED, numALLOWED_COUNT
PROD. PROCESS_COUNTER
WHERE NOM_PROCESSUS = "DAILY".
AND COUNTER_IND = A 'IF dtCH_DATE < = trunc (sysdate) THEN
numLAST_COUNT_ADDED: = 0;
END IF;EXCEPTION
WHILE OTHERS THEN
numLAST_COUNT_ADDED: = 0;
numALLOWED_COUNT: = 1;
END;
IF numALLOWED_COUNT > = numLAST_COUNT_ADDED + 1 THEN
bln_Allowed: = True;
varSTMT: = "UPDATE PROD. TMS_PROCESS_COUNTER ';
varSTMT: = varSTMT | ' SET last_count_added = ' | (numLAST_COUNT_ADDED + 1);
varSTMT: = varSTMT | "WHERE nom_processus =" DAILY "';
varSTMT: = varSTMT | "AND COUNTER_IND ="D"';
IF varSTMT IS NOT NULL
THEN
MyVar: = B(96,varSTMT);
PROC_LOG (' CALL B ': myVar);
IF myvar > 0 THEN
NULL;
END IF;
END IF;
On the other
End if;END IF;
EXCEPTION WHEN OTHERS THEN
PROC_LOG ("A failed '");
PROC_LOG (' SQL error: ' |) SUBSTR (SQLERRM, 1, 1000));
RETURNS A NULL VALUE.
PUT AN END TO;The FUNCTION B(numTABLE_ID IN NUMBER, varSQL_STATEMENT IN VARCHAR2) RETURNS NUMBER IS
varINSERT_BATCH_STMT VARCHAR2 (32767): = NULL;
varADD_REC_TYPE BATCH_TABLES. TYPE % ADD_REC_TYPE;BEGIN
INSERT INTO BATCH_STATEMENT (ID, TABLE_ID, STATEMENT, QUEUE_SEQUENCE_ID)
VALUES (Numidian, numTABLE_ID, varSQL_STATEMENT, 1);EXCEPTION WHEN OTHERS THEN
PROC_LOG ('B failed');
PROC_LOG (' SQL error: ' |) SUBSTR (SQLERRM, 1, 1000));
RETURNS - 1;
END B;
Structure of the Batch_statement table:
ID Number (15) not null
number (2) not null table_id
Statement varchar2 (4000) not null
Queue_sequence_id number (5) not nullWhy do you do such coding mess full of bad practices.
Remove the exceptions WHEN OTHERS, you're a turing a mistake in this way, they are bugs and (never) use functions to perform DML.
Functions are not intended for DML. Period.
-
PL/Sql to generate CSV on daily basis
Hello
I am trying to generate a csv file daily base asfet my data gets updated through SQL Server to the oracle server.
{code}
create or replace
procedure downloadxls (sysdate in date)
IS
s cursor is
Select d.DEBTORNO, separate d.name.
d.City | » '|| d.State |' ' || d.ZipCode city,
substr (d.phone1, 0, 3). » -' || substr (d.phone1, 3, 3) | » -'|| substr (d.phone1, 6, 4) as phone,
d.MOTORCARRNO, CREDEXPIREDATE, CREDEXPIREMOS
DEBTOR d
WHEN trunc (d.CREDEXPIREDATE) > = trunc (sysdate)-1
and CREDEXPIREMOS in (3,6,9,12)
and D.NOBUYDESC is null
and (d.NOBUYDISPUTEKEY is null or d.NOBUYDISPUTEKEY = 0)
order by 2;
MSG Number (38);
j_name DEBTORS.name%type: = null;
j_DEBTORNO DEBTORS. % DEBTORNO type: = null;
j_city DEBTORS.city%type: = null;
j_state DEBTORS.state%type: = null;
j_zip DEBTORS.zipcode%type: = null;
j_phone1 varchar2 (12): = null;
j_MOTORCARRNO DEBTORS. % MOTORCARRNO type: = null;
j_CREDEXPIREDATE DEBTORS. % CREDEXPIREDATE type: = null;
j_CREDEXPIREMOS DEBTORS. CREDEXPIREMOS % type: = null;
function escape (s in varchar2) return varchar2 as
Start
Return (Replace(s,'"','""'));
escape end;
Start
-dbms_output.put_line ('do something?');
-owa_util.mime_header (' file/csv');
owa_util.mime_header('file/csv',false);
HTP.p ('Content-Disposition: attachment; filename = "CRE_expire_" | to_char (sysdate, 'MMDDYY') |'.) (CSV"');
owa_util. HTTP_HEADER_CLOSE;
HTP.p ('DEBTORNO, name, city, State, zip, numbers1, MOTORCARRNO, CREDEXPIREDATE, CREDEXPIREMOS');
for rec in s loop
j_DEBTORNO: REC = DEBTORNO;
j_name: = rec.name;
j_city: = rec.city;
-j_state: = rec.state;
-j_zip: = rec.zip;
j_phone1: = rec.phone;
j_MOTORCARRNO: REC = MOTORCARRNO;
j_CREDEXPIREDATE: REC = CREDEXPIREDATE;
j_CREDEXPIREMOS: REC = CREDEXPIREMOS;
end loop;
END downloadxls; {code}
call {code of}
DECLARE
SYSDATE DATE;
BEGIN
SYSDATE: = NULL;
DOWNLOADXLS (SYSDATE = > SYSDATE);
END; {code}
Errors
Downloadxls compiled PROCEDURE
WARNING: the execution is completed with warning
Downloadxls compiled PROCEDURE
WARNING: the execution is completed with warning
Error from the 1 in the command line:
DECLARE
SYSDATE DATE;
BEGIN
SYSDATE: = NULL;
DOWNLOADXLS (SYSDATE = > SYSDATE);
END;
Error report:
ORA-06502: PL/SQL: digital error or value
ORA-06512: at "SYS." OWA_UTIL", line 356
ORA-06512: at "SYS." OWA_UTIL", line 415
ORA-06512: at "TBSBI. DOWNLOADXLS', line 37
ORA-06512: at line 5
06502 00000 - "PL/SQL: digital error or the value of %s.
* Cause:
* Action:
See this classic article from Tom Kyte where it shows several ways to do.
http://tkyte.blogspot.com/2009/10/httpasktomoraclecomtkyteflat.html
-
How to create the partition on a column in a table on a daily basis
Hi all
I wrote a query that does not, I have a column of varchar type, and I want to create the partition of the table on that column based daily interval. but ist is in error...
my query is...
create the table user_detail
(username varchar2 (50))
The user ID number,
country varchar2 (25).
accupation varchar2 (100),
company varchar2 (100),
joindate varchar2 (14))
partition by range (joindate)
INTERVAL (NUMTOYMINTERVAL (1, 'DAY'))
(PARTITION newone VALUES LESS THAN (to_date (April 13, 19 ', 'aa-mm-dd')));
error is:
Error from the 1 in the command line:
create the table user_detail
(username varchar2 (50))
The user ID number,
country varchar2 (25).
accupation varchar2 (100),
company varchar2 (100),
joindate varchar2 (14))
partition by range (joindate)
INTERVAL (NUMTOYMINTERVAL (1, 'DAY'))
(PARTITION newone VALUES LESS THAN (to_date (April 13, 19 ', 'aa-mm-dd')))
Error in the command line: 1 column: 0
Error report:
SQL error: ORA-14751: type of invalid data for the partitioning column of a partitioned table interval
Can I create partition on the varchar data type?On ORA11gR1 it works:
--virtual column CREATE TABLE TEST(joindate VARCHAR2(14), part_joindate AS (to_date(joindate,'dd.mm.yyyy'))) partition by range (part_joindate) INTERVAL(NUMTOYMINTERVAL(1, 'YEAR')) (PARTITION newone VALUES LESS THAN (to_date('2013-04-19', 'yyyy-mm-dd'))) ; INSERT INTO TEST(joindate) VALUES('19.04.2013'); SELECT * FROM TEST; DROP TABLE TEST; --aux column CREATE TABLE TEST(joindate VARCHAR2(14), part_joindate AS (to_date(joindate,'dd.mm.yyyy'))) partition by range (part_joindate) INTERVAL(NUMTOYMINTERVAL(1, 'YEAR')) (PARTITION newone VALUES LESS THAN (to_date('2013-04-19', 'yyyy-mm-dd'))) ; INSERT INTO TEST(joindate) VALUES('19.04.2013'); SELECT * FROM TEST; DROP TABLE TEST;
Published by: spajdy on April 19, 2013 14:58
-
Error ORA-27418 creating the calendar for DBMS_SCHEDULER
Hello world
Im trying to set up a schedule for dbms_scheduler on Oracle 11 g 2 test user sys like this server:
run DBMS_SCHEDULER. () CREATE_SCHEDULE
repeat_interval = > ' FREQ = DAILY; BYHOUR = 10:30 '.
start_date = > to_timestamp_tz ('2013-03-11 Europe/Berlin ',' YYYY-MM-DD TZR').
schedule_name = > 'FULLBACKUP_DAILY');
But I get an error ORA-27418 and ORA-06512:
DBMS_SCHEDULER BEGIN. CREATE_SCHEDULE (repeat_interval = > ' FREQ = DAILY;) BYHOUR = 10:30 ', start_date = > to_timestamp_tz ('2013-03-11 Europe/Berlin ',' YYYY-MM-DD TZR'), schedule_name = > 'FULLBACKUP_DAILY'); END;
*
FEHLER in line 1:
ORA-27418: Syntaxfehler in Wiederholungsintervall oder Kalender
ORA-06512: in 'SYS. DBMS_ISCHED ', line 997 '.
ORA-06512: in 'SYS. DBMS_SCHEDULER', line 1486
ORA-06512: In line 1
I had no right as sys to configure a scheduler or forgot to activate something?
Thanks for the help!
Kind regards
DavidHello
Could you try following interval?
repeat_interval => 'FREQ=DAILY;BYHOUR=10;BYMINUTE=30'
Kind regards
-
ALTER database open resetlog with ora-01666: controlfile is in standby
I have a problem after I have restore / recovered a backup of the source.
On the target, restoration/recovery all finished successfully, but change open resetlog of database with the following errors:
ORA-01666.
My steps are:
(1) make a backup as follows on the source (which is a prod before) complete
Configure controlfile autobackup on;
Configure snapshot controlfile name to ' / oracle_backup/rman/snapf.f'
BACKUP OF DATABASE TAG 'FULL '.
(2) CPC backupsets above the target
(3) in rman, set the dbid as the dbid of source, restored the snapf.f and then added the location.
(4) then restore, recover (everything is fine).
(5) when I alter database open resetlogs, it gives me error ora-01666.
(6) change the database open worked, but the PB is now in sleep mode and readonly.
I checked the settings, the dbname points to the dbname in source and db_unique_name point test on the target name. These two parameters have been reset by RMAN Duplicate.
We do not want a standby db, we need a test copied from the sourc.e environment
How should I proceed from here?
Thank youHello again;
And there is the problem, the only file of control is a watch. Compare your this example of mine:
BS Key Type LV Size Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ --------------- 4170117 Full 9.70M DISK 00:00:03 29-NOV-12 BP Key: 4170119 Status: AVAILABLE Compressed: NO Tag: TAG20121129T125327 Piece Name: /u01/oradata/RECOVER2_cold/control_RECOVER2_2821_20121129.bak Control File Included: Ckp SCN: 1307992402301 Ckp time: 29-NOV-12 BS Key Type LV Size Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ --------------- 4170127 Full 9.73M DISK 00:00:01 29-NOV-12 BP Key: 4170129 Status: AVAILABLE Compressed: NO Tag: TAG20121129T125332 Piece Name: /u01/app/oracle/flash_recovery_area/RECOVER2/autobackup/2012_11_29/o1_mf_s_800628756_8chcsf10_.bkp Control File Included: Ckp SCN: 1307992402301 Ckp time: 29-NOV-12
Note the version of ".bak" auto backup and y.
I think you need to take another backup. If you use Oracle 11 I have even more options.
For example, I update my test system using this:
http://www.Visi.com/~mseberg/RMAN/diff_database_duplicating.html
Sometimes I save on users, roles etc and replace later to hide.
Subsequently
You may be able to save what you have by creating a trace on the source file and then use it to re-create a control on the copy file.
If you run a backup trace command daily you can probably pull some SQL from your daily trace file like this. CREATE CONTROLFILE REUSE DATABASE "RECOVER2" NORESETLOGS NOARCHIVELOG MAXLOGFILES 16 MAXLOGMEMBERS 3 MAXDATAFILES 100 MAXINSTANCES 8 MAXLOGHISTORY 292 LOGFILE ... ...
You can save as say cf.sql, then:
SQL> startup nomount Run the SQL as shown above SQL> @cf.sql Control file created. SQL> Check the status of the database SQL> select status from v$instance; -- should be mounted If the database is mounted, can it be opened? Open the database SQL> alter database open; Database altered.
Best regards
mseberg
Published by: mseberg on November 29, 2012 19:10
-
ORA-01850: time must be between 0 and 23
Hi techies,.
We have created a procedure for our daily report.its works well for both location.when we run to a location, we end up with this error.our current NLS_DATE_FORMAT is HH24:MI:SS.but its run successfully when we value nls_date_format = .attendu 'DD-MON-YY' other two (which is the same except for one table where it retrieve data via dblink) is to run correctly with NLS_DATE_FORMAT HH24 : MI: SS.
ORA-01850: time must be between 0 and 23
ORA-02063: preceding the line of DW_TO_DIRC. NACALOGISTICS.COM
ORA-06512: at "OTSLGWEB. DAILY_JOB_PROFIT_REPORT_USA", line 89
ORA-06512: at line 1Sameer_appsdba wrote:
3. can we add ' alter session set NLS_DATE_FORMAT = 'DD-MON-YY' inside the procedure?Yes
SQL> ed Wrote file afiedt.buf 1 create or replace procedure p1_nls as 2 dt date; 3 begin 4 execute immediate('alter session set nls_date_format = ''DD-MON-YYYY'''); 5 select sysdate into dt from dual; 6 dbms_output.put_line(dt); 7* end; SQL> / Procedure created. SQL> alter session set nls_date_format = 'DD-MM-YYYY'; Session altered. SQL> select sysdate from dual; SYSDATE ---------- 21-07-2011 SQL> set serveroutput on SQL> begin 2 p1_nls(); 3 end; 4 / 21-JUL-2011 PL/SQL procedure successfully completed.
-
Hi all;
I am daily confronted with error ORA-1555
on my production db
error format is the following
ORA-01555 caused by the following SQL statement (SQL ID: bgkw51cu7dpvn, time of request = 0 sec, SNA: 0x056f.a8de552c):
Wed Dec 23 17:38:04 2009
SELECT THE ROWID, PIH_CMP_CODE, PIH_ORDNO, PIH_ORDDT, PIH_WKSHEET_NO, PIH_WKSHEET_DT, PIH_CUST_PONO, PIH_INVNO, PIH_INVDT, PIH_REFNO,
PIH_REFDT, PIH_ORD_TYPE, PIH_EX_RATE, PIH_CUST_CODE, PIH_OFFER_CODE, PIH_PAY_CODE, PIH_CUR_CODE, PIH_DELI_TERMS, PIH_DEPB_REMARK,
PIH_EPCG_REMARK, PIH_SHIP_REMARK, PIH_PACK_REMARK, PIH_REMARK, PIH_VESSEL_FLIGHT_NO, PIH_TOT_NET, PIH_TOT_GROSS,
PIH_WGT_UOM, PIH_MODE_SHIP, PIH_FOB_AMT, PIH_AMT, PIH_TOT_NO_PCK, PIH_TOT_NO_CONT, PIH_LOCATION_CODE,
PIH_OTHER_REFNO, PIH_ORIGIN_CNT, PIH_FINAL_DEST_CNT, PIH_LOAD_PORT, PIH_DISCHARGE_PORT, PIH_DEST_PORT, PIH_CARRIAGE,
PIH_PLACE_DELVY, PIH_PLACE_RECPT, PIH_FRT_PAYABLE_UPTO, PIH_BYR_CODE, PIH_CONSIG_CODE, PIH_NOTIFY_CODE, PIH_NOTIFY1_
CODE, PIH_EXP_BNK_CODE, PIH_BYR_BNK_CODE, PIH_CMP_ADD, PIH_BYR_ADD, PIH_CONSIG_ADD, PIH_NOTIFY_ADD, PIH_NOTIFY1_ADD, PIH_
EXP_BNK_ADD, PIH_BYR_BNK_ADD, PIH_FREIGHT_AMT, PIH_INSURANCE_AMT, PIH_COMMISSION_AMT, PIH_DISCOUNT_AMT, PIH_FRT_IMPACT,
PIH_INS_IMPACT, PIH_DOC_FREIGHT_AMT, PIH_DOC_INSURE_AMT, PIH_DOC_OC1_AMT, PIH_GRINO, PIH_GRIDT, PIH_SHIP_BILLNO, PIH_SHIP_BILLDT,
pih_cesl_no, PI
Help me pluser8862191 wrote:
In fact I confused whoannulment before contain the value change
Suppose I've changed a table 10 to20 emp_id value I'm not committing more
WT just cancel the old value 10 or changed block or line modified, any table?Read this,
http://download.Oracle.com/docs/CD/E11882_01/server.112/e10595/undo001.htm#ADMIN11460Do not forget that in return, you get the old stored image. In the case of your example, it would be 10 which would be stored in the Rollback Segment. Remember this, all that you added does not.
HTH
Aman... -
ORA-1654 <>- impossible to extend the index
We have an oracle application server and we started having errors ORA-1654. After digging through files newspapers, we found an error: ORA-1654: impossible to extend the JTF index. 16 in the APPS_TS_TX_IDX tablespace JTF_IH_ACTIVITIES_N6.
From what I understand, we must add a data file of our system. We currently have 4 data files that are 4 GB each. What is the solution? If Yes, what is the safest way to do it. Can I copy the files of 4 DB to another location and restore in this way, if the added file doesn't work or what is the best practice for this type of action? Thank youHi ToolMan,
Cannot extend the JTF index. 16 in the APPS_TS_TX_IDX tablespace JTF_IH_ACTIVITIES_N6.
This means that the index needs to grow in space and is full of tablespace APPS_TS_TX_IDX.
You must add datafille, it's regular daily dba work nothing to worry about.
Action plan:
1. first check where are the data APPS_TS_TX_IDX files--> select file_name in dba_data_files where tablesapce_name = 'APPS_TS_TX_IDX ';
2. check that you have enough space in the filsystem.
3. Add datafile--> alter tablespace APPS_TS_TX_IDX add datafile ' / path to the data file ' size XXXM;Published by: user11176183 on December 22, 2009 07:40
-
Why ORA-06512: at "SYS." DBMS_SCHEDULER', line 1794
Hi, I do the following
-creation of a beginning of program
BEGIN
() dbms_scheduler.create_program
program name = > "MAINTAIN_DDI_PROGRAM"
program_type = > 'procedure_stockee ',.
program_action = > 'MAINTAIN_DDI ',.
number_of_arguments = > 1,
activated = > FALSE,
Comments = > 'MAINTAIN_DDI');
END;
/
-creation of a program end
-set the program argument starts
BEGIN
() dbms_scheduler.define_program_argument
program name = > "MAINTAIN_DDI_PROGRAM"
argument_name = > 'p_User ',.
argument_position = > 1,
argument_type = > 'VARCHAR2 ',.
default_value = > 'SYSTEM');
END;
/
-end of the argument to define program
-creation of schedules departure
Start
() DBMS_SCHEDULER.create_schedule
schedule_name = > "MAINTAIN_DDI_SCHEDULE"
start_date = > SYSTIMESTAMP,
repeat_interval = > ' FREQ = DAILY; BYHOUR = 0',
End_date = > ",
Comments = > 'MAINTAIN_DDI_SCHEDULE_COMMENTS');
end;
/
-creation of end times
-creation of the beginning of the task
Start
DBMS_SCHEDULER. () CREATE_JOB
job_name = > 'MAINTAIN_DDI_JOB ',.
program name = > "MAINTAIN_DDI_PROGRAM"
schedule_name = > 'MAINTAIN_DDI_SCHEDULE');
() DBMS_SCHEDULER.set_attribute
name = > 'MAINTAIN_DDI_JOB ',.
attribute = > "job_class"
value = > "daily_job_class");
end;
/
-activation of the start of work
SQL > exec DBMS_SCHEDULER. SELECT ("MAINTAIN_DDI_JOB");
DBMS_SCHEDULER BEGIN. SELECT ("MAINTAIN_DDI_JOB"); END;
*
ERROR on line 1:
ORA-27486: insufficient privileges
ORA-06512: at "SYS." DBMS_ISCHED', line 2751
ORA-06512: at "SYS." DBMS_SCHEDULER', line 1794
ORA-06512: at line 1
-end of jobs
---
-> Why don't I have this error?
SQL > select distinct privilege of user_sys_privs;
PRIVILEGE
----------------------------------------
CREATE JOBS
UNLIMITED TABLESPACE
MANAGE SCHEDULER
= > cannot be doesn't have enough privileges listed in the Administrator's Guide to Oracle database on pg 27-2
to turn on work, I just need to own.
SELECT job_name, job_type, job_action, owner, system, activated from all_scheduler_jobs;
OWNER JOB_NAME J JOB_ACTION SYSTEM ENABL
-------- ----------------------- - ------------------------------ ----- -----
PROCMASK MAINTAIN_DDI_JOB_2 TRUE FALSE
PROCMASK MAINTAIN_DDI_JOB FALSE FALSE
So I created another job using a program named with the same name of program but no schedule_name
BEGIN
DBMS_SCHEDULER. () CREATE_JOB
job_name = > 'MAINTAIN_DDI_JOB_2 ',.
program name = > "MAINTAIN_DDI_PROGRAM"
repeat_interval = > ' FREQ = DAILY; BYHOUR = 12',
Comments = > "every day at noon");
END;
/
DBMS_SCHEDULER exec. SELECT ("MAINTAIN_DDI_JOB_2");
Why am I able to allow a job created a program called aid, but not able to allow a job using a program named creation and a calendar of name?
Thank you very much!
Published by: oraclewannabe2 on September 23, 2008 20:55Hello
You probably need to grant access to the owner of the task running on the job class.
Login as SYS or the creator of the category of jobs and
Grant execute on sys.daily_job_class to job_owner;
Hope this helps,
Ravi. -
I collect numbers "occasionally" of my solar system and to create a standardized chart that shows that the generation on an annual basis, so I can compare fall in the fall of each year, etc..
Because the information is not strictly 'daily' (just whenever I get to it), I don't know how it normalize for several years.
For example, if I had
Date - Kw/day
15/01/10 - 14
03/04/10 - 18
18/04/10 - 17
01/06/10 - 19
21/09/10 - 15
03/12/10 - 9
07/02/11 - 13
02/05/11 - 16
17/08/11 - 18
01/11/11 - 12
02/11/11 - 12
05/01/12 - 9
04/06/12 - 12
and so on.
What I'd like to see is a line graph for each year from January to December with these datapoints on it. I have much more "incremental data" that I presented above, but it's on "random dates" during the last 8 years, and I'm just trying to see how each year compared to other years.
To be at the front, I tried to understand how this in Excel as well, but he could not understand where the other.
DRM for any tips/tricks/tips!
Steve
This might work for you...
I placed your data in a table named "Data."
Create a second (in this example, titled 'Table 1')
In the table 'Table 1' months are in the first column and the first row (which is a header row) contains the years - add columns to add new year:
B2 = if (SUMIFS (data: $B, data: $A, "> =" & (B$ 1, $A2, 1), DATE data: $A, "<" & EOMONTH(A1,0) will GET (DATE B$ 1, $A2, 1, 0) "" "") > 0, SUMIFS (data: $B, given: $A, "> =" & (B$ 1, $A2, 1), DATE data: $A, "<" & EOMONTH(A1,0) will GET (DATE B$ 1, $A2, 1, 0) "" ""), "")
It's abbreviation dethrone select cell B2 and type (or copy and paste it here) the formula:
= IF (SUMIFS (data: $B, data: $A, "> =" & (B$ 1, $A2, 1), DATE data: $A, "<" & EOMONTH(A1,0) will GET (DATE B$ 1, $A2, 1, 0) "" "") > 0, SUMIFS (data: $B, given: $A, "> =" & (B$ 1, $A2, 1), DATE data: $A, "<" & EOMONTH(A1,0) will GET (DATE B$ 1, $A2, 1, 0) "" ""), "")
Select copy of cell B2
Select the cells B2 at the end of F13, dough
now select cells A2 through F13 and add a graphic (the XY scatter diagram)
Add new year add one (or more) new columns for "table 1", then add the year to the top:
Now alone, click the chart to activate the chart. then click on the button 'change data references '.
now, drag the data reference control handle to the right to add the new year to the table:
You can add several years to the time, so you don't have to it very often
Maybe you are looking for
-
Hi all! I have a question about the calendar with the DAQmxbase functions. I have the task to save data with a sampling frequency static (it will be greater than 100 000 points per second in theory) and I need to display a writing data to the file in
-
Save my computer while Microsoft will allow me to use this computer
I'm with the program of warrior of woundered at Walter reed hospital. They gave me a laptop Dell Inspiron with windows xp. He worked for a few weeks and it stopped in the middle of an emnail in Iraq. It now comes with license error and all license
-
Why my screen stops frequently when I'm in the middle of a task?
I replaced the hard drive and the power cable to the screen but the screen turns off in the middle of a task and requires to restart and reconnect the power cord to the monitor before it will work. Any suggestions? Thank you.
-
Switching from XP to 7 with a different license
I have Windows XP Media Center edition (OEM) on my work PC. I have Windows XP Professional (Genuine Advantage Kit) on my PC 'dead '; I want to upgrade to Windows 7 Professional on my work PC. Am I allowed to transfer the XP Pro on my PC in order to u
-
Internet explore and google chrome says to choose the program you want to use to open this file
Original title: I can't open my internet explore and google chrome it says to choose the program you want to use to open this file... file? HELP PLZ Help me