Problem with the Archive log in Oracle 11 g
Hi gurus,I'm new in the DBA role and I have real problems with the archive logs - they are written to the wrong place.
This is my environment:
Windows Server 2003 Enterprise x 64 Edition; Oracle 11g EE + ASM;
I did everything according to the instructions.
I did the following:
1. install Oracle 11 g software
2 instance created using DBCA for ASM in the same House and added a no formatted disk as a DATA disk group
3 database instance created using DBCA mode archive using ASM for data files. I've mirrored controlfiles and redo online records on the C: drive. I created flash_recovery_area and a reference to it when the instance was created.
4. start to import the data.
And here's the problem - for an unknown to me reason archive logs are written on 2 places: 1. in the flash_recovery_area, 2; IN MY ORACLE_HOME!
I opened with EM dbconsole init settings and found that there is a single parameter, that points to this place (standby_archive_dest =' docs in the % ORACLE_HOME%\RDBMS, it is written that it is an obsolete parameter). Is another parameter that I found (LOG_ARCHIVE_LOCAL_FIRST = TRUE - I put it to FALSE), but nothing to help continue to write in ORACLE_HOME.
How can I stop it? If I can't stop, so what happens in production? Should I manually delete all newspapers of this Archive - it will be madness!
Try to set log_archive_dest_1 specifically. Example: -.
ALTER system set db_recovery_file_dest_size = 400G;
ALTER system set db_recovery_file_dest = '+ ASM_ORADATA42;
ALTER system set log_archive_dest_state_1 = reporter;
ALTER system set LOG_ARCHIVE_DEST_1 is 'LOCATION = USE_DB_RECOVERY_FILE_DEST VALID_FOR =(ONLINE_LOGFILE,ALL_ROLES)';.
ALTER system set log_archive_dest_state_1 = enable;
Tags: Database
Similar Questions
-
Problem with the archive log when you use RMAN for backup and restore (11g 2)
Hello world
Please help me solve this problem.
I'm just beginner in Oracle Database (11 g 2). Today, I had a problem, I tried to back up and restore my db by RMAN. I delete all the files in /u01/app/oracle/oradata/orcl / * , then I restore them easily, but the point is I have a table, I can restore Hungarian, but cannot restore anything ranks in it (something wrong with step restore database). I'll tell the detail below.
-First, I create a 'Day' with command table create table hr.day (varchar (20)) day. Then I backup complete by this:run{
allocate channel bkp device type DISK FORMAT '/u01/backup/DB_FULL_%d_%T_s%s_p%p' ;
backup as compressed backupset incremental level 0 tag 'DB_FULL' database include current controlfile;
backup as compressed backupset tag 'ARCL_BKP_FULL' archivelog all delete input;
crosscheck archivelog all;
crosscheck backup;
delete noprompt obsolete;
release channel bkp;
}
D ' other hand, I have insert 'Monday' to table. then do an incremental backup by this:run{
allocate channel bkp device type DISK FORMAT '/u01/backup/DB_INC_%d_%T_s%s_p%p' ;
backup as compressed backupset incremental level 1 tag 'DB_INC' database include current controlfile;
backup as compressed backupset tag 'ARCL_BKP_INC' archivelog all delete input;
crosscheck archivelog all;
crosscheck backup;
delete noprompt obsolete;
release channel bkp;
}Repeat 7 times (Monday-> Saturday). And I got these files:
[oracle@rac ~]$ ls -l /u01/backup/
total 400280
-rw-r----- 1 oracle oinstall 10158080 Jan 20 07:23 c-1428943247-20160120-01
-rw-r----- 1 oracle oinstall 10158080 Jan 20 08:04 c-1428943247-20160120-02
-rw-r----- 1 oracle oinstall 10158080 Jan 20 08:05 c-1428943247-20160120-03
-rw-r----- 1 oracle oinstall 10158080 Jan 20 08:06 c-1428943247-20160120-04
-rw-r----- 1 oracle oinstall 10158080 Jan 20 08:08 c-1428943247-20160120-05
-rw-r----- 1 oracle oinstall 10158080 Jan 20 08:08 c-1428943247-20160120-06
-rw-r----- 1 oracle oinstall 10158080 Jan 20 08:09 c-1428943247-20160120-07
-rw-r----- 1 oracle oinstall 10158080 Jan 20 08:32 c-1428943247-20160120-08
-rw-r----- 1 oracle oinstall 296337408 Jan 20 07:23 DB_FULL_ORCL_20160120_s89_p1
-rw-r----- 1 oracle oinstall 1130496 Jan 20 07:23 DB_FULL_ORCL_20160120_s90_p1
-rw-r----- 1 oracle oinstall 2266624 Jan 20 07:23 DB_FULL_ORCL_20160120_s91_p1
-rw-r----- 1 oracle oinstall 4073984 Jan 20 07:23 DB_FULL_ORCL_20160120_s92_p1
-rw-r----- 1 oracle oinstall 11201536 Jan 20 07:23 DB_FULL_ORCL_20160120_s93_p1
-rw-r----- 1 oracle oinstall 1130496 Jan 20 08:05 DB_INC_ORCL_20160120_s100_p1
-rw-r----- 1 oracle oinstall 146944 Jan 20 08:05 DB_INC_ORCL_20160120_s101_p1
-rw-r----- 1 oracle oinstall 884736 Jan 20 08:06 DB_INC_ORCL_20160120_s103_p1
-rw-r----- 1 oracle oinstall 1130496 Jan 20 08:06 DB_INC_ORCL_20160120_s104_p1
-rw-r----- 1 oracle oinstall 82432 Jan 20 08:06 DB_INC_ORCL_20160120_s105_p1
-rw-r----- 1 oracle oinstall 294912 Jan 20 08:07 DB_INC_ORCL_20160120_s107_p1
-rw-r----- 1 oracle oinstall 1130496 Jan 20 08:07 DB_INC_ORCL_20160120_s108_p1
-rw-r----- 1 oracle oinstall 18944 Jan 20 08:08 DB_INC_ORCL_20160120_s109_p1
-rw-r----- 1 oracle oinstall 155648 Jan 20 08:08 DB_INC_ORCL_20160120_s111_p1
-rw-r----- 1 oracle oinstall 1130496 Jan 20 08:08 DB_INC_ORCL_20160120_s112_p1
-rw-r----- 1 oracle oinstall 131584 Jan 20 08:08 DB_INC_ORCL_20160120_s113_p1
-rw-r----- 1 oracle oinstall 647168 Jan 20 08:09 DB_INC_ORCL_20160120_s115_p1
-rw-r----- 1 oracle oinstall 1130496 Jan 20 08:09 DB_INC_ORCL_20160120_s116_p1
-rw-r----- 1 oracle oinstall 8704 Jan 20 08:09 DB_INC_ORCL_20160120_s117_p1
-rw-r----- 1 oracle oinstall 2203648 Jan 20 08:04 DB_INC_ORCL_20160120_s95_p1
-rw-r----- 1 oracle oinstall 1130496 Jan 20 08:04 DB_INC_ORCL_20160120_s96_p1
-rw-r----- 1 oracle oinstall 1899008 Jan 20 08:04 DB_INC_ORCL_20160120_s97_p1
-rw-r----- 1 oracle oinstall 327680 Jan 20 08:05 DB_INC_ORCL_20160120_s99_p1And
RMAN> list backup summary;
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
------- -- -- - ----------- --------------- ------- ------- ---------- ---
80 B 0 A DISK 20-JAN-16 1 1 YES DB_FULL
81 B 0 A DISK 20-JAN-16 1 1 YES DB_FULL
82 B A A DISK 20-JAN-16 1 1 YES ARCL_BKP_FULL
83 B A A DISK 20-JAN-16 1 1 YES ARCL_BKP_FULL
84 B A A DISK 20-JAN-16 1 1 YES ARCL_BKP_FULL
85 B F A DISK 20-JAN-16 1 1 NO TAG20160120T072332
86 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
87 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
88 B A A DISK 20-JAN-16 1 1 YES ARCL_BKP_INC
89 B F A DISK 20-JAN-16 1 1 NO TAG20160120T080440
90 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
91 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
92 B A A DISK 20-JAN-16 1 1 YES ARCL_BKP_INC
93 B F A DISK 20-JAN-16 1 1 NO TAG20160120T080545
94 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
95 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
96 B A A DISK 20-JAN-16 1 1 YES ARCL_BKP_INC
97 B F A DISK 20-JAN-16 1 1 NO TAG20160120T080657
98 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
99 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
100 B A A DISK 20-JAN-16 1 1 YES ARCL_BKP_INC
101 B F A DISK 20-JAN-16 1 1 NO TAG20160120T080801
102 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
103 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
104 B A A DISK 20-JAN-16 1 1 YES ARCL_BKP_INC
105 B F A DISK 20-JAN-16 1 1 NO TAG20160120T080844
106 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
107 B 1 A DISK 20-JAN-16 1 1 YES DB_INC
108 B A A DISK 20-JAN-16 1 1 YES ARCL_BKP_INCMy configuration of rman:
RMAN> show all;
RMAN configuration parameters for database with db_unique_name ORCL are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u01/backup/%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/u01/backup/backup_df%t_s%s_s%p';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome/dbs/snapcf_orcl.f'; # default- Thirdly, i removed all file in /u01/app/oracle/oradata/orcl/*. then restore control file from the newest backup control file (saturday backup) + restore database. Seem nothing's wrong here.
RMAN> restore controlfile from '/u01/backup/c-1428943247-20160120-08';
Starting restore at 20-JAN-16
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=18 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=20 device type=DISK
channel ORA_DISK_2: skipped, AUTOBACKUP already found
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:09
output file name=/u01/app/oracle/oradata/orcl/control01.ctl
output file name=/u01/app/oracle/flash_recovery_area/orcl/control02.ctl
Finished restore at 20-JAN-16
RMAN> alter database mount;
database mounted
released channel: ORA_DISK_1
released channel: ORA_DISK_2
RMAN> restore database;
Starting restore at 20-JAN-16
Starting implicit crosscheck backup at 20-JAN-16
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=20 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=18 device type=DISK
Crosschecked 29 objects
Finished implicit crosscheck backup at 20-JAN-16
Starting implicit crosscheck copy at 20-JAN-16
using channel ORA_DISK_1
using channel ORA_DISK_2
Finished implicit crosscheck copy at 20-JAN-16
searching for all files in the recovery area
cataloging files...
no files cataloged
using channel ORA_DISK_1
using channel ORA_DISK_2
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00001 to /u01/app/oracle/oradata/orcl/system01.dbf
channel ORA_DISK_1: restoring datafile 00002 to /u01/app/oracle/oradata/orcl/sysaux01.dbf
channel ORA_DISK_1: restoring datafile 00003 to /u01/app/oracle/oradata/orcl/undotbs01.dbf
channel ORA_DISK_1: restoring datafile 00004 to /u01/app/oracle/oradata/orcl/users01.dbf
channel ORA_DISK_1: restoring datafile 00005 to /u01/app/oracle/oradata/orcl/example01.dbf
channel ORA_DISK_1: reading from backup piece /u01/backup/DB_FULL_ORCL_20160120_s89_p1
channel ORA_DISK_1: piece handle=/u01/backup/DB_FULL_ORCL_20160120_s89_p1 tag=DB_FULL
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:01:15
Finished restore at 20-JAN-16-Fourth, the problem here, I got the database;
.. .every oky until this line...starting media recovery
channel ORA_DISK_1: starting archived log restore to default destination
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=15
channel ORA_DISK_1: reading from backup piece /u01/backup/DB_INC_ORCL_20160120_s117_p1
channel ORA_DISK_1: piece handle=/u01/backup/DB_INC_ORCL_20160120_s117_p1 tag=ARCL_BKP_INC
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
archived log file name=/u01/app/oracle/flash_recovery_area/ORCL/archivelog/2016_01_20/o1_mf_1_15_c9xsyx9k_.arc thread=1 sequence=15
unable to find archived log
archived log thread=1 sequence=1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/20/2016 08:50:22RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 1 and starting SCN of 1205841
The error said that it is impossible to find the archived log thread = 1 sequence = 1. Then I check it with this command always there (oh, I'm wrong?)RMAN> list backup of archivelog all;
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
82 2.16M DISK 00:00:00 20-JAN-16
BP Key: 82 Status: AVAILABLE Compressed: YES Tag: ARCL_BKP_FULL
Piece Name: /u01/backup/DB_FULL_ORCL_20160120_s91_p1
List of Archived Logs in backup set 82
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 1 1154833 20-JAN-16 1177422 20-JAN-16
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
83 3.88M DISK 00:00:00 20-JAN-16
BP Key: 83 Status: AVAILABLE Compressed: YES Tag: ARCL_BKP_FULL
Piece Name: /u01/backup/DB_FULL_ORCL_20160120_s92_p1
List of Archived Logs in backup set 83
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 1 1162729 20-JAN-16 1188784 20-JAN-16
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
84 10.68M DISK 00:00:01 20-JAN-16
BP Key: 84 Status: AVAILABLE Compressed: YES Tag: ARCL_BKP_FULL
Piece Name: /u01/backup/DB_FULL_ORCL_20160120_s93_p1
List of Archived Logs in backup set 84
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 2 1177422 20-JAN-16 1201833 20-JAN-16
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
88 1.81M DISK 00:00:01 20-JAN-16
BP Key: 88 Status: AVAILABLE Compressed: YES Tag: ARCL_BKP_INC
Piece Name: /u01/backup/DB_INC_ORCL_20160120_s97_p1
List of Archived Logs in backup set 88
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 3 1201833 20-JAN-16 1204844 20-JAN-16
1 4 1204844 20-JAN-16 1204893 20-JAN-16
1 5 1204893 20-JAN-16 1204958 20-JAN-16
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
92 143.00K DISK 00:00:00 20-JAN-16
BP Key: 92 Status: AVAILABLE Compressed: YES Tag: ARCL_BKP_INC
Piece Name: /u01/backup/DB_INC_ORCL_20160120_s101_p1
List of Archived Logs in backup set 92
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 6 1204958 20-JAN-16 1205034 20-JAN-16
1 7 1205034 20-JAN-16 1205253 20-JAN-16
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
96 80.00K DISK 00:00:00 20-JAN-16
BP Key: 96 Status: AVAILABLE Compressed: YES Tag: ARCL_BKP_INC
Piece Name: /u01/backup/DB_INC_ORCL_20160120_s105_p1
List of Archived Logs in backup set 96
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 8 1205253 20-JAN-16 1205354 20-JAN-16
1 9 1205354 20-JAN-16 1205433 20-JAN-16
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
100 18.00K DISK 00:00:00 20-JAN-16
BP Key: 100 Status: AVAILABLE Compressed: YES Tag: ARCL_BKP_INC
Piece Name: /u01/backup/DB_INC_ORCL_20160120_s109_p1
List of Archived Logs in backup set 100
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 10 1205433 20-JAN-16 1205519 20-JAN-16
1 11 1205519 20-JAN-16 1205559 20-JAN-16
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
104 128.00K DISK 00:00:00 20-JAN-16
BP Key: 104 Status: AVAILABLE Compressed: YES Tag: ARCL_BKP_INC
Piece Name: /u01/backup/DB_INC_ORCL_20160120_s113_p1
List of Archived Logs in backup set 104
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 12 1205559 20-JAN-16 1205624 20-JAN-16
1 13 1205624 20-JAN-16 1205739 20-JAN-16
BS Key Size Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
108 8.00K DISK 00:00:00 20-JAN-16
BP Key: 108 Status: AVAILABLE Compressed: YES Tag: ARCL_BKP_INC
Piece Name: /u01/backup/DB_INC_ORCL_20160120_s117_p1
List of Archived Logs in backup set 108
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 14 1205739 20-JAN-16 1205796 20-JAN-16
1 15 1205796 20-JAN-16 1205840 20-JAN-16
If i ignore it and open the database, just my table in full backup come back but rows was not restored. I'm sure the problem is my archive log backup but i don't know how to solve it. Plz help me.Sorry for a long post.
> 1 and from the 1205841 SNA sequence
The SCN that indicates Oracle is above the range of SNA that you have in the ArchiveLog backups for sequence 1 to 15 (15 sequence ends at 1205840).
The message
channel ORA_DISK_1: restoring archives Journal
Archives journal thread = 1 sequence = 15
channel ORA_DISK_1: backup/u01/backup/DB_INC_ORCL_20160120_s117_p1 piece reading
channel ORA_DISK_1: piece handle = / u01/backup/DB_INC_ORCL_20160120_s117_p1 tag = ARCL_BKP_INC
indicates that he has restored the sequence up to 15
You can check the log file alert database instance for messages on the fact of recovery.
He is now asking sequence #1 it seems you did a RESETLOGS after sequence #15.
Note: If you have NOT issued a COMMIT after the line is INSERTED in the table 'Day', the recovery of the database will have no * transactions * to retrieve. An uncomitted transaction is cancelled.
Hemant K Collette
-
With RMAN for backup, but not with the archive logs
We run a 10.2.0.4 database and the rest 11.2.0.3. All databases are on RHEL 5.7.
Our backups are via RMAN, with the data files, controlfiles and spfile saved to disk, then each day, it is copied off site to a backup server.
My question is around logs archiving and RMAN.
Our current situation is:
-We do not save the logs to archive via RMAN. for example: backup of the list of the archivelog all; gives "specification does not match backups in the repository.
-We set the archive_lag_target so archiving logs is produced every 30 minutes.
-a cron job running on a remote server runs periodically to synchronize data (rsync server) the directory of archives with a remote control.
-daily archive logs on the server host are bzip. Purge of these newspapers is scheduled for more than 3 days rman 'window of recovery '.
I'm interested in feedback as to if our strategy around archiving logs is correct or not.
Should we be backup logs archiving via RMAN? Are there potential problems with our approach?
We just kept our backups in this way the DBA in the past want to see newspapers archived as opposed to it while a backupset.
Curious to know what others are doing.Hello
Welcome to OTN!
Archivelogs with RMAN backup is a better option. When the archives are supported by RMAN, RMAN would be aware of the backup items which are required at the time of the recovery archives. You don't have to do it manually.
On the disk space, you can delete the archives once they were saved by RMAN.
RMAN > delete any backup archivelog entry;
This supports the archivelogs and then remove the archives from the disk.
If you have a dataguard configured, you can set the deletion policy 'applied on Eve', which removes the archives as and when they are applied to the database ensures there by the management of disk space again.
RMAN > configure archivelog political of deletion to applied pending;
-
Hi you have a problem with the final installation with adobe elements first 13
you have a pc windows 7 home premium 64-bit OS 6 GB of Ram
an error message appears that says
exit code 7
the final installation stops at 2% and then I get this message
I think I need to download the 64-bit software
Help, please
Exit code: 6, Exit Code: 7 Installation errors.
http://helpx.Adobe.com/Creative-Suite/KB/errors-exit-code-6-exit.html
The problems with the Setup logs. CS5, CS5.5, CS6-
http://helpx.Adobe.com/Creative-Suite/KB/troubleshoot-install-logs-CS5-CS5.html
For more information on how to review your Setup logs
-
No clarity about the location of archive logs in Oracle database 11g
I have this request which I am not able to solve. There is a location of the log archiving mentioned as /oraarch/app/oracle/oradata/snlprod/archive_logs/in the parameter log_archive_dest_1. But the archive logs appear in another location/orabackup/rman/snlprod/archive_logs. I wonder how the archive logs show at this location, / orabackup/rman/snlprod/archive_logs.
I assume that there is only one way in what place can be given which is seen availability-> restore settings-> Media Recovery.
Hopefully, my question is clear.
Please get back with the answer to my query.
Concerning
Check the location of the archive log backup in the script. What is /orabackup/rman/snlprod/archive_logs.
-
Problems with the date in the procedure on Oracle 11 g
Hi gurus,
I have some problems with the date under Oracle 11 g format.
Let me explain the situation:
When I start such a request
Select to_number (to_char (to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'))
of sys.dual
I had as a result 2009 under the number.
When I do the same thing in a procedure of a package like this
my_year: = to_number (to_char (to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'));
the my_year variable contains the value 9 instead of 2009.
Can someone explain to me what goes wrong?
I just tested with the evolution of the variable nls_date_format of environment for the session and the database is complete without success.
Kind regards
BjörnYes, it has everything to do with your environment settings.
SQL> set serveroutput on; SQL> SQL> declare 2 my_date date; 3 my_zeitstempel varchar2(32767); 4 my_tageswechsel float; 5 begin 6 my_zeitstempel := '01.03.1998 07:00'; 7 my_tageswechsel := .25; 8 my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24; 9 dbms_output.put_line( my_date); 10 end; 11 / 01-MAR-98 PL/SQL procedure successfully completed. SQL> alter session set nls_date_format = 'dd.mm.yyyy hh24:mi:ss' 2 / Session altered. SQL> declare 2 my_date date; 3 my_zeitstempel varchar2(32767); 4 my_tageswechsel float; 5 begin 6 my_zeitstempel := '01.03.1998 07:00'; 7 my_tageswechsel := .25; 8 my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24; 9 dbms_output.put_line( my_date); 10 end; 11 / 01.03.1998 07:00:00 PL/SQL procedure successfully completed.
-
Problem with the Oracle text markup
Hello
I have a problem with the Oracle text markup.
I am looking for keywords in a text which is composed by a question and answer.
Here is the structure of my text:
& lt; div class = 'question' & gt;
& lt; a & gt; the title of my question & lt; /a & gt;
& lt; div class = "reply & gt;
content of response
& lt; / div & gt;
& lt; / div & gt;
It is possible to search those keywords in the question or answer only. For this, I use the stored procedure:
{call CTX_DOC. MARKUP)
index_name = >?
textkey = >?
text_Query = >?
restab = >?
query_id = >?
startTag = >?
(EndTag = >?)}
_with these parameters: _
index_name = < my index >
textkey = < id for the search text >
text_Query = < a query containing the keywords >
restab = < a table SQL to store the marked text >
query_id = < id >
startTag = ' < span class =-"highlight\" >. "
EndTag = "</span >.
The markup should be done only in the place you want (question, answer, or both).
The markup is good when I search a keyword throughout the text, in the question or answer only.
* If I search two key words in the question or answer, the markup is bad *.
_Example: __
I am looking for the words "* Internet *" in question only.
Here's the query passed to the stored procedure:
+ * text_query * = 'service & internet' INPATH (//div[@class = 'question'] / has) +.
In the question, these words are well marked.
In response, only the first word is marked.
* Why the first keyword is also marked in the response while the query specifies a search in question only? *
The same problem appears when I search for the same keywords in the response only.
In this case, in the answer, these words are marked as well.
In the issue, only the first word is marked.
Thanks for your help
Edited by: user11088931 Apr 21. 2009 06:17Try text_query = (service & internet) INPATH (//div/a)
Single quotes in a query do nothing. I think that your request has been treated as
Service & (internet INPATH (//div/a))
-
Problems with the declarations of Type in Oracle 9i
Create OR replace Type Ty is object
(
attr1 varchar2 (30),
attr2 Varchar2 (30),
attr3 Varchar2 (30),
Manufacturer Ty function return AS a result,
Ty (p_attr1 IN Varchar2) constructor function
Return self as RESULT,
Constructor Function ty (p_attr1 IN Varchar2,
p_attr2 IN Varchar2)
Return to SELF, RESULT,
Constructor Function Ty (P_attr1 IN Varchar2,
P_attr2 IN Varchar2,
P_attr3 IN Varchar2)
Return self as RESULT
);
/
Create OR replace Type body Ty like
Ty function constructor return self as result that
Start
RETURN;
End;
Constructor function Ty(p_attr1 IN Varchar2) return
SELF as RESULT that
Begin
COTTAGES. Attr1: = p_attr1;
RETURN;
End;
Constructor Function Ty (p_attr1 IN Varchar2,
P_attr2 IN Varchar2)
Return self as RESULT that
Begin
COTTAGES. Attr1: = p_attr1;
COTTAGES. Attr2: = P_attr2;
RETURN;
End;
Constructor Function Ty (P_attr1 IN Varchar2,
P_attr2 IN Varchar2,
P_attr3 IN Varchar2)
Return self as RESULT that
Start
COTTAGES. Attr1: = P_attr1;
COTTAGES. Attr2: = P_attr2;
COTTAGES. Attr3: = P_attr3;
RETURN;
End;
End;
/
Declare
T1 Ty: = Ty();
Ty T2: = Ty ('A');
T3 Ty: = Ty('B','C');
T4 Ty: = Ty('D','E','F');
Begin
dbms_output.put_line (t1. Attr1);
dbms_output.put_line (t2.attr1);
dbms_output.put_line (t3. Attr1);
dbms_output.put_line (t4. Attr1);
End;
T4 Ty: = Ty('D','E','F');
*
ERROR on line 5:
ORA-06550: line 5, column 12:
PLS-00307: too many statements of "TY" corresponds to this call
ORA-06550: line 5, column 6:
PL/SQL: Ignored Element
ORA-06550: line 10, column 25:
PLS-00320: the declaration of the type of the expression is incomplete or
Malformed
ORA-06550: line 10, column 3:
PL/SQL: Statement ignored
Please help me what is the problem with me? I use Oracle 9i release 2.You don't need to declare a constructor for "all" attributes - you get one automatically. Remove the declaration of the complete constructor function on all 3 attributes, and you will find your block works fine dbms_outputs.
-
There is not much information in the doc around the new configuration of static file. Someone at - it an example of this dads.conf he file should look similar to static files? Everything else seems to work fine - it's my only hang up now.
Thank you!
Exact pop-up message:
There are problems with the configuration of static files in your environment. Please see the section "Configuration static file Support" in the Guide of the Installation Application Express
I figured it out on my own - the doc has a section "6.5.4 configuration Support for static file" which basically said yes, it is now supported for static files, then a "see also:" link to the dads.conf section, that I'm not good enough to see there are now 2 new parameters in your dads config file... All is ready! It works! YAY!
-
Remove the archive logs from before the resetlogs
Hello
I use a cleanupscript to my archive logs. I work with a database of return of flame and running of tests, so I did a bit of resetlogs open in my DB.
However, this script does not seem to take the archive logs away from before the resetlogs. Is there a way I can always make a backup of these easily?
Run {}
allocate channel t1 type disk;
OVERLAP archivelog all;
format of entry archivelog backup to remove sequences 5 ' / oracle/RMAN/backups/${SID}/backups/DISK_ARC_%d_%s.%p';
current backup controlfile as ' / oracle/RMAN/backups/${SID}/backups/DISK_CTL_%d_%s.%p';
output channel t1;
}
(until the 5:5 sequence is the last log applied on standby)If, once that you the database in resetlogs. can no longer needed the repository information, you tell me what you will do with these archives?
still, you can keep in the repository as
RMAN > catalogue archivelog 'archive_file ';
then it will be registered in the repository
-
Problem with the app on iTunes downloading updates
In recent weeks I had problems with the availability of the Apple download servers. Most of the downloads are refused because the server is not available. If I manually choose each update I can get them later. All the other progs work very well and iTunes diagnostics are all OK.
Is this a general problem?
I use iTunes ver 12.3.3.17 64-bit on Windows 10
Try a forced reboot hold home and Sleep/Wake buttons simultaneously for about 15-20 seconds until the Apple logo appears. You won't lose anything. Then sign out of the iTunes Store and log in.
Depending on your situation, it is possible that the servers may be busy as well.
-
There were problems with my finder for a few months now. Whenever I click on the finder, it will take about 3 minutes to load, and then I'll be able to use it. This applies when I try to open any folder as well. The time-out period is really long. I restarted the finder many times and I've updated my IMAC as well. Can someone help with this situation?
Thank you!
Log on to your account and your account of comments. Are there still problems with the Finder in the comments? If not, he isolated to your user name and we can probably repair easily.
-
Problem with the certificate on Xbox 360 system Internet Explorer error
Original title: that is this "problem with certificates?
I have been using Bing on my Xbox 360 Internet Explorer system for years with little trouble. Today, I cleaned the history since he was a little slow again, but now I am unable to connect to Bing (or really any Microsoft site) through the Xbox 360 Internet Explorer. Whenever I try, I keep coming to a screen message saying that there is a problem with the certificate on the site. I am able to log in and connect to these same sites fine on my computer, but I don't have access to my computer all the time, so it was nice to be able to use Bing on my Xbox 360, but now with this error I can't. What is the cause of this, and what can be done to remedy this.
It seems that a recent patch for the application of EI on the Xbox 360 has solved this problem now.
-
Problem with the module "Automation" in WindowsAzure
Top: Problems with the module used "Automation" service "WindowsAzure.
Hello!
I really need your help to decide my problem of "Azure Automation". My boss has set a task for the 'Automation' module allows you to make a backup of Virtual Machines.
To understand my problem, I do the next:
1. describe the situation of all;
2. describe the problems that appear in this situation;
3. my conclusions.
In addition, I am attaching the necessary information: my PS-scripts (from Windows and the automation of azure), log (with my notes) and screenshots (images with my notes) see file .rar Add_info (annex).
1 description any situation
For our development projects, we have several Virtual Machines on service cloud "WindowsAzure. We need to make backups of discs with Virtual Machines each week. Earlier, for this task, I used Windows PowerShell on my computer and my PS-script (see Ann 0 - VM (backup) of the WPS_snapshot). I created a new storage 'backupstor' and containing 'snaps-drive '. When I run PS-script with my computer, I have backup of disks virtual Machin in the container "snaps-disk", without problem.
Now I have a new task "automatically make the process of creating backup of Virtual Machines (VM snapshots). I tried to use automation module (overview). Can I change my PS script for the 'Automation' module and create folders (see Ann 1 - records (make backups of virtual machines) _Azure_Automation).
I need to make a backup of Virtual Machine 'bosard' in the cloud 'cloudnet. "Bosard" on the disc size ~ approximately 90 000 000 000 bytes (total size of the default drive size 127 GB/136 367 309 312 bytes)
2. description of the problems that appear in this situation
My steps:
1. I start files to make a backup of Virtual Machine disk (see annex 1 - files (make backups of virtual machines) _Azure_Automation))
2. it starts successfully and generate the name of backup 1 (blob) - snapshot-bosard - osdisk_07.10.2014_07h00m39s.vhd (see image 1 - start copy backup 1 and annex 2 - log file copy process)
3. the process of backup copy 1 (blob) will...
Problem 1:
4. the process of backup copy 1 (see Appendix 2 - process log file copy) automatically stops and complete to copy the part 1/3 bytes copied 28311552000only. Important: The size of my virtual machine disk ~ on 90 000 000 000 bytes. (Maximum possible) of total capacity of the disk where the Virtual Machine is used - 136 367 309 312 (127 GB). (See picture 2 - stop backup copy 1)
5. I have Virtual size 1 backup - 28311552000bytes, when the size of my VM - 90 000 000 000 / 136 367 309 312 bytes.
Problem 2:
6. after the termination of the process automatically makes copy backup 1, records (see annex 1 - files (make backups of virtual machines) _Azure_Automation) automatically start (see picture 2 - stop backup copy 1) and folders automatically create new snapshot Backup 2 - name - bosard - osdisk_07.10.2014_07h31m33s.vhd (see annex 2 - process log file copy, image 3 - stop the copy backup 1 & Begin copy backup 2 and 5 - backupStore_Azure (process)of image)
7. I pressed "stop" and stopped the process of copy and folders (picture 4 - I stopped the process of creating backup 2 & records). And how result I had size Backup 1 and 2 = 0 bytes (see image 6 - backupStore_Azure (I order records))
Note:
1 problem 1: the process of backup of virtual machine does not complete and stops automatically.
2 problem 2: the process of creating new second backup starts automatically. And as a result, we do not have the backup of virtual machine, when I use the 'Automation '.
3. my conclusions
I think that:
1. my PS script for Automation (files) is not correctly. Then I need your help, how to fix this.
2 may be the module "Automation" is not working correctly. And the module 'Automation' needs repairs and settings.
In addition, I am attaching the necessary information (see the Add_info (annex) .rar file):
Ann WPS_snapshot 0 - VM (backup)
Ann 1 - records (make backups of virtual machines) _Azure_Automation
Ann 2 - log file copy process
image 1 - start the copy backup 1
image 2 - stop copy backup 1
image 3 - stop copy backup 1 & Begin copy backup 2
4. I stopped the image create backup processes 2 & records
image 5 - backupStore_Azure (process)
image 6 - backupStore_Azure (I order records)
Thank you
Kind regards
Mikhail
Hello
You can get the assisted support from the following link on this point:.
-
Problem with the microsoft lifecam vx-5000 appication on my windows xp 32-bit
I recently bought the lifecam vx-5000 and installed the software from the cd provided in the box. The webcam application fails and cannot open. It says that an error has occurred and must be closed. Also, the webcam is not detectable by Skype. I've download the latest version of the software (for my windows xp 32-bit) on the site but the problem still exists. What's not?
Hello
Looks like the camera might have a hardware problem or something running is interfering with
the software and drivers.LifeCam VX-5000 - 3 year warranty
http://www.Microsoft.com/hardware/digitalcommunication/ProductDetails.aspx?pid=014&active_tab=systemRequirementsMicrosoft Hardware warranties
http://www.Microsoft.com/hardware/warranties.mspxSupport for WebCam
http://www.Microsoft.com/hardware/digitalcommunication/support/default.mspx
and
http://www.Microsoft.com/hardware/en-us/supportVisit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy. If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.
===========
Also check with Skype and Forums support for known issues with their programs.
Skype - Support
https://support.Skype.com/en-us/Skype - Forums
http://Forum.Skype.com/==============================================================
Use the startup clean and other methods to try to determine the cause of and eliminate problems.
How to troubleshoot a problem by performing a clean boot in Windows Vista or
Windows 7
http://support.Microsoft.com/kb/929135How to change, add or remove startup programs in Windows 7
http://www.SevenForums.com/tutorials/1401-startup-programs-change.htmlAutoruns - free - see what programs are configured to start automatically when you start your system
and you log in. Autoruns also shows you the full list of registry and file locations where applications can
Configure auto-start settings.
http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx
I hope this helps.Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="">-><- mark="" twain="" said="" it="">->
Maybe you are looking for
-
HP 15-500LA OMEN: HP OMEN LIGTH CONTROL DOES NOT WORK
Hello I just got a 15 HP on August 22 and omen control does not change the diodes. The first thing I did is you update Windows 8 Windows 10. OS is in Spanish Control of omen for change the light does not work. Can sombody help me to make it work? I'
-
Screw is missing after service and can't find the right display driver
Last week, I complained about the weakness of the MIC and I sent mobile care Toshiba in Adelaide. Yesterday, they sent it. Problem: I checked the laptop carefully and discovered there is a missing screw near the wireless switch. (The type of screws m
-
NO scrolling with the trackpad
My old Mac Pro (early 2011), I installed my copy of time machine with Yosemite 10.10.5 Mac Pro (2014) and the trackpad with 2 fingers doesn´t scroll work. Any ideas? Thank you!
-
Envy 15 t q300: activate Windows after add SSD
-Recently, I bought an mSATA SSD and add to my book. Now I want to reinstall Windows 10 in this SSD, my Windows 10 is now on the HARD drive. Windows will automatically activate once I installed windows SSD or what I can do to activate it? My settings
-
Problems of DirectX running Win7 via Bootcamp on Macbook Pro
Hello world. So I installed Win7 64-bit on my Macbook Pro (Intel Dup 2.66 GHz, 4 GB DDR3, NVidia GT 9400 M) using bootcamp eager to play games. I kind of want to go pick up Starcraft 2, but I don't want to buy a mac version of a game as much as I cou