NOREGISTER....
There is very little information regarding this attribute NOREGISTER which can be specified in LOG_ARCHIVE_DEST_N. Does this mean the locations of the archived redo logs on the redo destination are not registered in that destination controlfile.
Can any please tell me the significance of this parameter.
Thanks,
Robin
Edited by: 900486 on Dec 23, 2012 7:19 PM
900486 wrote:
There is very little information regarding this attribute NOREGISTER which can be specified in LOG_ARCHIVE_DEST_N. Does this mean the locations of the archived redo logs on the redo destination are not registered in that destination controlfile.
Can any please tell me the significance of this parameter.
Thanks,
Robin
Edited by: 900486 on Dec 23, 2012 7:19 PMwhen all else fails Read The Fine Manual
http://docs.oracle.com/cd/B19306_01/server.102/b14239/log_arch_dest_param.htm#i81866
Similar Messages
-
Old code not working in 11.5
For years I used the following code to open a .pdf file with a stand alone .pdf reader that does not require installation.
open "resume.pdf" with "Foxit Reader.exe"
When I converted the old director file from MX to 11.5 and tried to execute the code I received the following message in a dialog box:
Usage:
FoxitReader [-Register] [-NoRegister] [PDF filename] [-n ,Page Number>] {ImportFDF <FDF filename>]
-n <Page Number> Specify most recently read page number.
-Import FDF <FDF filename> Import the form data from the specified FDF file
-Register Set Foxit Reader as default reader.
-NoRegister Open Foxit Reader but won't set it as default reader.
What is all this? I have used this same code since Director 8.0 with no issues. Can anyone explain this to me and how to fix it?
Thanks.
MNKAre you sure that's the same code? Lingo's 'open' typically has problems with spaces in file/directory names. How about if you try this version?
open QUOTE &"resume.pdf" "E with QUOTE &"Foxit Reader.exe" "E
Mark A. Boyd
Keep-On-Learnin' :-)
This message was processed and edited by Jive.
It shall not be considered an accurate representation of my words. -
TIP 04: Duplicating a Database in 10g by Joel Pèrez
Hi OTN Readers!
Everyday I get connection on Internet and one of the first issues that
I do is to open the OTN main page to look for any new article or any
new news about the Oracle Technology. After I open the main page of
OTN Forums and I check what answers I can write to help some people
to work with the Oracle Technology and I decided to begin to write some
threads to help DBAs and Developers to learn the new features of 10g.
I hope you can take advantage of them which will be published here in
this forum. For any comment you can write to me directly to : [email protected] . Apart from your comments you can suggest to me any topic to write an article like this.
Please do not replay this thread, if you have any question related to
this I recommend you to open a new post. Thanks!
The tip of this thread is: Duplicating a Database in 10g
Joel Pérez
http://otn.oracle.com/expertsStep 6: Editing the file generated
The file generated is going to be like this:
Dump file f:\ora9i\admin\copy1\udump\copy1_ora_912.trc
Thu May 20 16:27:37 2004
ORACLE V9.2.0.1.0 - Production vsnsta=0
vsnsql=12 vsnxtr=3
Windows 2000 Version 5.0 Service Pack 4, CPU type 586
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
Windows 2000 Version 5.0 Service Pack 4, CPU type 586
Instance name: copy1
Redo thread mounted by this instance: 1
Oracle process number: 10
Windows thread id: 912, image: ORACLE.EXE
*** SESSION ID:(9.38) 2004-05-20 16:27:37.000
*** 2004-05-20 16:27:37.000
# The following are current System-scope REDO Log Archival related
# parameters and can be included in the database initialization file.
# LOG_ARCHIVE_DEST=''
# LOG_ARCHIVE_DUPLEX_DEST=''
# LOG_ARCHIVE_FORMAT=ARC%S.%T
# REMOTE_ARCHIVE_ENABLE=TRUE
# LOG_ARCHIVE_MAX_PROCESSES=2
# STANDBY_FILE_MANAGEMENT=MANUAL
# STANDBY_ARCHIVE_DEST=%ORACLE_HOME%\RDBMS
# FAL_CLIENT=''
# FAL_SERVER=''
# LOG_ARCHIVE_DEST_1='LOCATION=f:\ora9i\RDBMS'
# LOG_ARCHIVE_DEST_1='MANDATORY NOREOPEN NODELAY'
# LOG_ARCHIVE_DEST_1='ARCH NOAFFIRM SYNC'
# LOG_ARCHIVE_DEST_1='NOREGISTER NOALTERNATE NODEPENDENCY'
# LOG_ARCHIVE_DEST_1='NOMAX_FAILURE NOQUOTA_SIZE NOQUOTA_USED'
# LOG_ARCHIVE_DEST_STATE_1=ENABLE
# Below are two sets of SQL statements, each of which creates a new
# control file and uses it to open the database. The first set opens
# the database with the NORESETLOGS option and should be used only if
# the current versions of all online logs are available. The second
# set opens the database with the RESETLOGS option and should be used
# if online logs are unavailable.
# The appropriate set of statements can be copied from the trace into
# a script file, edited as necessary, and executed when there is a
# need to re-create the control file.
# Set #1. NORESETLOGS case
# The following commands will create a new control file and use it
# to open the database.
# Data used by the recovery manager will be lost. Additional logs may
# be required for media recovery of offline data files. Use this
# only if the current version of all online logs are available.
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "COPY1" NORESETLOGS NOARCHIVELOG
-- SET STANDBY TO MAXIMIZE PERFORMANCE
MAXLOGFILES 50
MAXLOGMEMBERS 5
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 226
LOGFILE
GROUP 1 'C:\COPY1\COPY1\REDO01.LOG' SIZE 10M,
GROUP 2 'C:\COPY1\COPY1\REDO02.LOG' SIZE 10M,
GROUP 3 'C:\COPY1\COPY1\REDO03.LOG' SIZE 10M
-- STANDBY LOGFILE
DATAFILE
'C:\COPY1\COPY1\SYSTEM01.DBF',
'C:\COPY1\COPY1\UNDOTBS01.DBF',
'C:\COPY1\COPY1\CWMLITE01.DBF',
'C:\COPY1\COPY1\DRSYS01.DBF',
'C:\COPY1\COPY1\EXAMPLE01.DBF',
'C:\COPY1\COPY1\INDX01.DBF',
'C:\COPY1\COPY1\ODM01.DBF',
'C:\COPY1\COPY1\TOOLS01.DBF',
'C:\COPY1\COPY1\USERS01.DBF',
'C:\COPY1\COPY1\XDB01.DBF'
CHARACTER SET WE8ISO8859P1
# Recovery is required if any of the datafiles are restored backups,
# or if the last shutdown was not normal or immediate.
RECOVER DATABASE
# Database can now be opened normally.
ALTER DATABASE OPEN;
# Commands to add tempfiles to temporary tablespaces.
# Online tempfiles have complete space information.
# Other tempfiles may require adjustment.
ALTER TABLESPACE TEMP ADD TEMPFILE 'C:\COPY1\COPY1\TEMP01.DBF'
SIZE 41943040 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;
# End of tempfile additions.
# Set #2. RESETLOGS case
# The following commands will create a new control file and use it
# to open the database.
# The contents of online logs will be lost and all backups will
# be invalidated. Use this only if online logs are damaged.
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "COPY1" RESETLOGS NOARCHIVELOG
-- SET STANDBY TO MAXIMIZE PERFORMANCE
MAXLOGFILES 50
MAXLOGMEMBERS 5
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 226
LOGFILE
GROUP 1 'C:\COPY1\COPY1\REDO01.LOG' SIZE 10M,
GROUP 2 'C:\COPY1\COPY1\REDO02.LOG' SIZE 10M,
GROUP 3 'C:\COPY1\COPY1\REDO03.LOG' SIZE 10M
-- STANDBY LOGFILE
DATAFILE
'C:\COPY1\COPY1\SYSTEM01.DBF',
'C:\COPY1\COPY1\UNDOTBS01.DBF',
'C:\COPY1\COPY1\CWMLITE01.DBF',
'C:\COPY1\COPY1\DRSYS01.DBF',
'C:\COPY1\COPY1\EXAMPLE01.DBF',
'C:\COPY1\COPY1\INDX01.DBF',
'C:\COPY1\COPY1\ODM01.DBF',
'C:\COPY1\COPY1\TOOLS01.DBF',
'C:\COPY1\COPY1\USERS01.DBF',
'C:\COPY1\COPY1\XDB01.DBF'
CHARACTER SET WE8ISO8859P1
# Recovery is required if any of the datafiles are restored backups,
# or if the last shutdown was not normal or immediate.
RECOVER DATABASE USING BACKUP CONTROLFILE
# Database can now be opened zeroing the online logs.
ALTER DATABASE OPEN RESETLOGS;
# Commands to add tempfiles to temporary tablespaces.
# Online tempfiles have complete space information.
# Other tempfiles may require adjustment.
ALTER TABLESPACE TEMP ADD TEMPFILE 'C:\COPY1\COPY1\TEMP01.DBF'
SIZE 41943040 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;
# End of tempfile additions.
#As you can see, you have there different ways to recreate the controlfile. In Our case, We are going to recreate the controlfiles so:
STARTUP NOMOUNT
CREATE CONTROLFILE SET DATABASE "COPY2" RESETLOGS NOARCHIVELOG
-- SET STANDBY TO MAXIMIZE PERFORMANCE
MAXLOGFILES 50
MAXLOGMEMBERS 5
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 226
LOGFILE
GROUP 1 'C:\COPY2\COPY2\REDO01.LOG' SIZE 10M,
GROUP 2 'C:\COPY2\COPY2\REDO02.LOG' SIZE 10M,
GROUP 3 'C:\COPY2\COPY2\REDO03.LOG' SIZE 10M
-- STANDBY LOGFILE
DATAFILE
'C:\COPY2\COPY2\SYSTEM01.DBF',
'C:\COPY2\COPY2\UNDOTBS01.DBF',
'C:\COPY2\COPY2\CWMLITE01.DBF',
'C:\COPY2\COPY2\DRSYS01.DBF',
'C:\COPY2\COPY2\EXAMPLE01.DBF',
'C:\COPY2\COPY2\INDX01.DBF',
'C:\COPY2\COPY2\ODM01.DBF',
'C:\COPY2\COPY2\TOOLS01.DBF',
'C:\COPY2\COPY2\USERS01.DBF',
'C:\COPY2\COPY2\XDB01.DBF'
CHARACTER SET WE8ISO8859P1
Note: two important issues to denote in the sentence above is the word "SET" instead of "REUSE" and the controlfiles must be recreated in RESETLOG mode because the database must be opened in RESETLOG mode.
If you use the word "REUSE" instead of "SET" the opening of the database is going to request recovery of the datafile of the tablespace system.
So, apply this to recreate the controlfiles:
- Start the service in windows for the database COPY2
- Get connection through SQL*Plus as system
- Shut down the database with shutdown abort
- Start the database up in nomount stage
- apply the sentence to recreate the controlfile.
C:\>SET ORACLE_SID=COPY2
C:\>sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on Thu May 20 16:46:49 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> conn sys as sysdba
Enter password:
Connected.
SQL>
SQL> shutdown abort
ORACLE instance shut down.
SQL>
SQL>
SQL> startup nomount
ORACLE instance started.
Total System Global Area 135338868 bytes
Fixed Size 453492 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
SQL>
SQL>
SQL> CREATE CONTROLFILE SET DATABASE "COPY2" RESETLOGS NOARCHIVELOG
2 -- SET STANDBY TO MAXIMIZE PERFORMANCE
3 MAXLOGFILES 50
4 MAXLOGMEMBERS 5
5 MAXDATAFILES 100
6 MAXINSTANCES 1
7 MAXLOGHISTORY 226
8 LOGFILE
9 GROUP 1 'F:\COPY2\COPY2\REDO01.LOG' SIZE 10M,
10 GROUP 2 'F:\COPY2\COPY2\REDO02.LOG' SIZE 10M,
11 GROUP 3 'F:\COPY2\COPY2\REDO03.LOG' SIZE 10M
12 -- STANDBY LOGFILE
13 DATAFILE
14 'F:\COPY2\COPY2\SYSTEM01.DBF',
15 'F:\COPY2\COPY2\UNDOTBS01.DBF',
16 'F:\COPY2\COPY2\CWMLITE01.DBF',
17 'F:\COPY2\COPY2\DRSYS01.DBF',
18 'F:\COPY2\COPY2\EXAMPLE01.DBF',
19 'F:\COPY2\COPY2\INDX01.DBF',
20 'F:\COPY2\COPY2\ODM01.DBF',
21 'F:\COPY2\COPY2\TOOLS01.DBF',
22 'F:\COPY2\COPY2\USERS01.DBF',
23 'F:\COPY2\COPY2\XDB01.DBF'
24 CHARACTER SET WE8ISO8859P1
25 ;
Control file created.
SQL>Joel Pérez
http://otn.oracle.com/experts -
Backup controlfile to trace as 'c:\prod_ctl.txt'
Hi All,
11.2.0.1
I am examining the output of the trace file, because I want to simulate or test this process.
This file has two(2) sets of command. one(1) is for the intact online logs and the other one(1) is for damage online logs.
Questions:
1. What do u mean by damage online logs. does this mean that i lost all these redo files:
LOGFILE
GROUP 1 'D:\APP\PROD\ORADATA\ORCL\REDO01.LOG' SIZE 50M BLOCKSIZE 512,
GROUP 2 'D:\APP\PROD\ORADATA\ORCL\REDO02.LOG' SIZE 50M BLOCKSIZE 512,
GROUP 3 'D:\APP\PROD\ORADATA\ORCL\REDO03.LOG' SIZE 50M BLOCKSIZE 512
2. Why is that the two(2) sets are just the same set of commands? except for backup controlfile and open resetlogs?
3. Do I need RMAN backup to run this recovery statements?
Thanks,
pK
========
-- The following are current System-scope REDO Log Archival related
-- parameters and can be included in the database initialization file.
-- LOG_ARCHIVE_DEST=''
-- LOG_ARCHIVE_DUPLEX_DEST=''
-- LOG_ARCHIVE_FORMAT=ARC%S_%R.%T
-- DB_UNIQUE_NAME="orcl"
-- LOG_ARCHIVE_CONFIG='SEND, RECEIVE, NODG_CONFIG'
-- LOG_ARCHIVE_MAX_PROCESSES=4
-- STANDBY_FILE_MANAGEMENT=MANUAL
-- STANDBY_ARCHIVE_DEST=%ORACLE_HOME%\RDBMS
-- FAL_CLIENT=''
-- FAL_SERVER=''
-- LOG_ARCHIVE_DEST_1='LOCATION=USE_DB_RECOVERY_FILE_DEST'
-- LOG_ARCHIVE_DEST_1='MANDATORY NOREOPEN NODELAY'
-- LOG_ARCHIVE_DEST_1='ARCH NOAFFIRM EXPEDITE NOVERIFY SYNC'
-- LOG_ARCHIVE_DEST_1='NOREGISTER NOALTERNATE NODEPENDENCY'
-- LOG_ARCHIVE_DEST_1='NOMAX_FAILURE NOQUOTA_SIZE NOQUOTA_USED NODB_UNIQUE_NAME'
-- LOG_ARCHIVE_DEST_1='VALID_FOR=(PRIMARY_ROLE,ONLINE_LOGFILES)'
-- LOG_ARCHIVE_DEST_STATE_1=ENABLE
-- Below are two sets of SQL statements, each of which creates a new
-- control file and uses it to open the database. The first set opens
-- the database with the NORESETLOGS option and should be used only if
-- the current versions of all online logs are available. The second
-- set opens the database with the RESETLOGS option and should be used
-- if online logs are unavailable.
-- The appropriate set of statements can be copied from the trace into
-- a script file, edited as necessary, and executed when there is a
-- need to re-create the control file.
-- Set #1. NORESETLOGS case
-- The following commands will create a new control file and use it
-- to open the database.
-- Data used by Recovery Manager will be lost.
-- Additional logs may be required for media recovery of offline
-- Use this only if the current versions of all online logs are
-- available.
-- After mounting the created controlfile, the following SQL
-- statement will place the database in the appropriate
-- protection mode:
-- ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 'D:\APP\PROD\ORADATA\ORCL\REDO01.LOG' SIZE 50M BLOCKSIZE 512,
GROUP 2 'D:\APP\PROD\ORADATA\ORCL\REDO02.LOG' SIZE 50M BLOCKSIZE 512,
GROUP 3 'D:\APP\PROD\ORADATA\ORCL\REDO03.LOG' SIZE 50M BLOCKSIZE 512
-- STANDBY LOGFILE
DATAFILE
'D:\APP\PROD\ORADATA\ORCL\SYSTEM01.DBF',
'D:\APP\PROD\ORADATA\ORCL\SYSAUX01.DBF',
'D:\APP\PROD\ORADATA\ORCL\UNDOTBS01.DBF',
'D:\APP\PROD\ORADATA\ORCL\USERS01.DBF',
'D:\APP\PROD\ORADATA\ORCL\EXAMPLE01.DBF'
CHARACTER SET WE8MSWIN1252
-- Commands to re-create incarnation table
-- Below log names MUST be changed to existing filenames on
-- disk. Any one log file from each branch can be used to
-- re-create incarnation records.
-- ALTER DATABASE REGISTER LOGFILE 'D:\APP\PROD\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_12_26\O1_MF_1_1_%U_.ARC';
-- ALTER DATABASE REGISTER LOGFILE 'D:\APP\PROD\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_12_26\O1_MF_1_1_%U_.ARC';
-- Recovery is required if any of the datafiles are restored backups,
-- or if the last shutdown was not normal or immediate.
RECOVER DATABASE
-- Database can now be opened normally.
ALTER DATABASE OPEN;
-- Commands to add tempfiles to temporary tablespaces.
-- Online tempfiles have complete space information.
-- Other tempfiles may require adjustment.
ALTER TABLESPACE TEMP ADD TEMPFILE 'D:\APP\PROD\ORADATA\ORCL\TEMP01.DBF'
SIZE 20971520 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;
-- End of tempfile additions.
-- Set #2. RESETLOGS case
-- The following commands will create a new control file and use it
-- to open the database.
-- Data used by Recovery Manager will be lost.
-- The contents of online logs will be lost and all backups will
-- be invalidated. Use this only if online logs are damaged.
-- After mounting the created controlfile, the following SQL
-- statement will place the database in the appropriate
-- protection mode:
-- ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "ORCL" RESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 'D:\APP\PROD\ORADATA\ORCL\REDO01.LOG' SIZE 50M BLOCKSIZE 512,
GROUP 2 'D:\APP\PROD\ORADATA\ORCL\REDO02.LOG' SIZE 50M BLOCKSIZE 512,
GROUP 3 'D:\APP\PROD\ORADATA\ORCL\REDO03.LOG' SIZE 50M BLOCKSIZE 512
-- STANDBY LOGFILE
DATAFILE
'D:\APP\PROD\ORADATA\ORCL\SYSTEM01.DBF',
'D:\APP\PROD\ORADATA\ORCL\SYSAUX01.DBF',
'D:\APP\PROD\ORADATA\ORCL\UNDOTBS01.DBF',
'D:\APP\PROD\ORADATA\ORCL\USERS01.DBF',
'D:\APP\PROD\ORADATA\ORCL\EXAMPLE01.DBF'
CHARACTER SET WE8MSWIN1252
-- Commands to re-create incarnation table
-- Below log names MUST be changed to existing filenames on
-- disk. Any one log file from each branch can be used to
-- re-create incarnation records.
-- ALTER DATABASE REGISTER LOGFILE 'D:\APP\PROD\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_12_26\O1_MF_1_1_%U_.ARC';
-- ALTER DATABASE REGISTER LOGFILE 'D:\APP\PROD\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_12_26\O1_MF_1_1_%U_.ARC';
-- Recovery is required if any of the datafiles are restored backups,
-- or if the last shutdown was not normal or immediate.
RECOVER DATABASE USING BACKUP CONTROLFILE
-- Database can now be opened zeroing the online logs.
ALTER DATABASE OPEN RESETLOGS;
-- Commands to add tempfiles to temporary tablespaces.
-- Online tempfiles have complete space information.
-- Other tempfiles may require adjustment.
ALTER TABLESPACE TEMP ADD TEMPFILE 'D:\APP\PROD\ORADATA\ORCL\TEMP01.DBF'
SIZE 20971520 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;
-- End of tempfile additions.
===============,Hi ,
As far as i understand , one is with :
CREATE CONTROLFILE REUSE DATABASE "ORCL" RESETLOGS NOARCHIVELOG
and the other one is with :
CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS NOARCHIVELOG
The first one (resetlogs) is useful when you are trying to open a database after incomplete recovery (during cloning for example) or while changing the name of the database after restoring and recovering a database during a clone process.
The second one ( noresetlogs )is used when we have a consistent database and we are recreating the controlfile.
In General , you may be using resetlogs while opening a cloned database after incomplete recovery.
Regards
Karan -
Strange layout behaviour with TilePane
here is the demo
1.rootLayout have 2 child,controlbox and contentLayout
2.3 button on controlbox
3.contentLayout will add content,when press deffrent button on controlbox
4.watch button "Add TilePane" , strange layout behaviour , what is the matter?
layout picture
|--------------------------------|
| | |
| | |
| | |
| | |
|controlbox | contentLayout |
| (VBox) | (StackPane) |
| | |
| | |
| | |
| | |
|--------------------------------|
the code
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.geometry.Pos;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.ListView;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.StackPane;
import javafx.scene.layout.TilePane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class testTilePaneLayout extends Application {
StackPane contentLayout = new StackPane();
//add content with 2 Button
public void addContent(){
VBox vbox = new VBox();
contentLayout.getChildren().clear();
contentLayout.getChildren().add(vbox);
StackPane.setAlignment(vbox,Pos.CENTER);
Button btn = new Button("Button1");
Button btn2= new Button("Button2");
vbox.getChildren().add(btn);
vbox.getChildren().add(btn2);
//add content with 2 Button & 1 ListView
public void addListViewContent(){
VBox vbox = new VBox();
contentLayout.getChildren().clear();
contentLayout.getChildren().add(vbox);
StackPane.setAlignment(vbox,Pos.CENTER);
Button btn = new Button("Button1");
Button btn2= new Button("Button2");
vbox.getChildren().add(btn);
vbox.getChildren().add(btn2);
@SuppressWarnings("rawtypes")
ListView listView = new ListView();
vbox.getChildren().add(listView);
//add content with 2 Button & 1 TilePane
public void addTilePaneContent(){
VBox vbox = new VBox();
contentLayout.getChildren().clear();
contentLayout.getChildren().add(vbox);
StackPane.setAlignment(vbox,Pos.CENTER);
Button btn = new Button("Button1");
Button btn2= new Button("Button2");
vbox.getChildren().add(btn);
vbox.getChildren().add(btn2);
TilePane tilePane = new TilePane();
tilePane.setMaxSize(100,100);
Label lbl = new Label("Label on TilePane");
tilePane.getChildren().add(lbl);
vbox.getChildren().add(tilePane);
public void start(Stage stage) {
stage.setResizable(false);
stage.centerOnScreen();
Group root = new Group();
Scene scene = new Scene(root,800,600);
stage.setScene(scene);
//root Layout = StackPane
StackPane rootLayout = new StackPane();
root.getChildren().add(rootLayout);
rootLayout.setMinSize(800,600);
rootLayout.setMaxSize(800,600);
//content StackPane
rootLayout.getChildren().add(contentLayout);
contentLayout.setMinSize(100, 100);
contentLayout.setMaxSize(200, 200);
StackPane.setAlignment(contentLayout,Pos.CENTER);
//control VBox
VBox controlBox = new VBox();
rootLayout.getChildren().add(controlBox);
controlBox.setMaxSize(100, 200);
StackPane.setAlignment(controlBox,Pos.CENTER_LEFT);
//3 control button
Button btn1 = new Button("Add button");
Button btn2= new Button("Add Listview");
Button btn3= new Button("Add TilePane");
controlBox.getChildren().add(btn1);
controlBox.getChildren().add(btn2);
controlBox.getChildren().add(btn3);
btn1.setOnMousePressed(new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent arg0) {
addContent();
btn2.setOnMousePressed(new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent arg0) {
addListViewContent();
btn3.setOnMousePressed(new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent arg0) {
addTilePaneContent();
stage.show();
public static void main(String[] args) {
Application.launch(args);
}Edited by: noregister on Oct 4, 2011 11:30 AM
Edited by: noregister on Oct 4, 2011 11:31 AMOh, my bad. I'm actually using a JToggleButton and not a JButton, so the getRootPane().setDefaultButton() doesn't apply because it only takes JButton as an input param. I wonder why it wasn't implemented to take AbstractButton. hmmm.
-
*.ico file format not support in ImageView ?
ico file can not display in ImageView ?
Image img = new Image(iconView.class.getResourceAsStream("test.ico"));
ImageView imgview = new ImageView();
rootLayout.getChildren().add(imgview);Edited by: noregister on Oct 23, 2011 11:28 AM
Edited by: noregister on Oct 23, 2011 11:29 AMBack in August someone made an ImageView version that could support SVG (through Batik), see I would like to share my small SVG-ImageView solution for link to the code.
I guess you could use the same trick to add support for ico files, using existing Java libs that can read that format.
Indeed neither ImageView nor Image has a clear documentation on what's involved underneath or on how to expand the range of supported formats without writing your own custom Image sub-class.
Does it work through ImageIO as other AWT/Swing image operations? If so it would means that the Java Advanced Imaging I/O codec are supported (for additional file formats support) straight out of the box.
Creating their own ImageClass may help people get support Java Advanced Imaging's TileImage as well.
Maybe there are a couple of RFE that can be made on the JIRA about that. -
Dear Friends,
We have created DR server of our ECC production server.
We are running ECC 6.0, HP-UX and oracle 10g.
Now we want to create DR for the same using offline backup of our primary database.
Please help me ?
Regrdsa
Ganesh Datt TiwariHi Rajesh,
Thanks for your valuable reply.
I have tried to fin dthe file control.trc but in my system there is a file "pdr_ora_22200.trc".
Please find the content of this file.
Unix process pid: 22200, image: oracle@jkeccdb (TNS V1-V3)
SERVICE NAME:(SYS$USERS) 2008-10-01 02:03:27.767
SESSION ID:(739.24722) 2008-10-01 02:03:27.767
2008-10-01 02:03:27.767
-- The following are current System-scope REDO Log Archival related
-- parameters and can be included in the database initialization file.
-- LOG_ARCHIVE_DEST=''
-- LOG_ARCHIVE_DUPLEX_DEST=''
-- LOG_ARCHIVE_FORMAT=%t_%s_%r.dbf
-- DB_UNIQUE_NAME="PDR"
-- LOG_ARCHIVE_CONFIG='SEND, RECEIVE, NODG_CONFIG'
-- LOG_ARCHIVE_MAX_PROCESSES=2
-- STANDBY_FILE_MANAGEMENT=MANUAL
-- STANDBY_ARCHIVE_DEST=?/dbs/arch
-- FAL_CLIENT=''
-- FAL_SERVER=''
-- LOG_ARCHIVE_DEST_1='LOCATION=/oracle/PDR/oraarch/PDRarch'
-- LOG_ARCHIVE_DEST_1='MANDATORY NOREOPEN NODELAY'
-- LOG_ARCHIVE_DEST_1='ARCH NOAFFIRM EXPEDITE NOVERIFY SYNC'
-- LOG_ARCHIVE_DEST_1='NOREGISTER NOALTERNATE NODEPENDENCY'
-- LOG_ARCHIVE_DEST_1='NOMAX_FAILURE NOQUOTA_SIZE NOQUOTA_USED NODB_UNIQUE_NAME'
-- LOG_ARCHIVE_DEST_1='VALID_FOR=(PRIMARY_ROLE,ONLINE_LOGFILES)'
-- LOG_ARCHIVE_DEST_STATE_1=ENABLE
-- Below are two sets of SQL statements, each of which creates a new
-- control file and uses it to open the database. The first set opens
-- the database with the NORESETLOGS option and should be used only if
-- the current versions of all online logs are available. The second
-- set opens the database with the RESETLOGS option and should be used
-- if online logs are unavailable.
-- The appropriate set of statements can be copied from the trace into
-- a script file, edited as necessary, and executed when there is a
-- need to re-create the control file.
-- Set #1. NORESETLOGS case
-- The following commands will create a new control file and use it
-- to open the database.
-- Data used by Recovery Manager will be lost.
-- Additional logs may be required for media recovery of offline
-- Use this only if the current versions of all online logs are
-- available.
-- After mounting the created controlfile, the following SQL
-- statement will place the database in the appropriate
-- protection mode:
-- ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "PDR" NORESETLOGS ARCHIVELOG
MAXLOGFILES 255
MAXLOGMEMBERS 3
MAXDATAFILES 254
MAXINSTANCES 50
MAXLOGHISTORY 23360
LOGFILE
GROUP 21 (
'/oracle/PDR/origlogA/log_g21m1.dbf',
'/oracle/PDR/mirrlogA/log_g21m2.dbf'
) SIZE 250M,
GROUP 22 (
'/oracle/PDR/origlogA/log_g22m1.dbf',
'/oracle/PDR/mirrlogA/log_g22m2.dbf'
) SIZE 250M,
GROUP 23 (
'/oracle/PDR/origlogB/log_g23m1.dbf',
'/oracle/PDR/mirrlogB/log_g23m2.dbf'
) SIZE 250M,
GROUP 24 (
'/oracle/PDR/origlogB/log_g24m1.dbf',
'/oracle/PDR/mirrlogB/log_g24m2.dbf'
) SIZE 250M
-- STANDBY LOGFILE
DATAFILE
'/oracle/PDR/sapdata1/system_1/system.data1',
'/oracle/PDR/sapdata3/undo_1/undo.data1',
'/oracle/PDR/sapdata1/sysaux_1/sysaux.data1',
'/oracle/PDR/sapdata1/pdr_1/pdr.data1',
'/oracle/PDR/sapdata1/pdr_2/pdr.data2',
'/oracle/PDR/sapdata1/pdr_3/pdr.data3',
'/oracle/PDR/sapdata1/pdr_4/pdr.data4',
'/oracle/PDR/sapdata1/pdr_5/pdr.data5',
'/oracle/PDR/sapdata2/pdr_6/pdr.data6',
'/oracle/PDR/sapdata2/pdr_7/pdr.data7',
'/oracle/PDR/sapdata2/pdr_8/pdr.data8',
'/oracle/PDR/sapdata2/pdr_9/pdr.data9',
'/oracle/PDR/sapdata2/pdr_10/pdr.data10',
'/oracle/PDR/sapdata3/pdr_11/pdr.data11',
'/oracle/PDR/sapdata3/pdr_12/pdr.data12',
'/oracle/PDR/sapdata3/pdr_13/pdr.data13',
'/oracle/PDR/sapdata3/pdr_14/pdr.data14',
'/oracle/PDR/sapdata3/pdr_15/pdr.data15',
'/oracle/PDR/sapdata4/pdr_16/pdr.data16',
'/oracle/PDR/sapdata4/pdr_17/pdr.data17',
'/oracle/PDR/sapdata4/pdr_18/pdr.data18',
'/oracle/PDR/sapdata4/pdr_19/pdr.data19',
'/oracle/PDR/sapdata4/pdr_20/pdr.data20',
'/oracle/PDR/sapdata1/pdr700_1/pdr700.data1',
'/oracle/PDR/sapdata1/pdr700_2/pdr700.data2',
'/oracle/PDR/sapdata1/pdr700_3/pdr700.data3',
'/oracle/PDR/sapdata1/pdr700_4/pdr700.data4',
'/oracle/PDR/sapdata2/pdr700_5/pdr700.data5',
'/oracle/PDR/sapdata2/pdr700_6/pdr700.data6',
'/oracle/PDR/sapdata2/pdr700_7/pdr700.data7',
'/oracle/PDR/sapdata2/pdr700_8/pdr700.data8',
'/oracle/PDR/sapdata3/pdr700_9/pdr700.data9',
'/oracle/PDR/sapdata3/pdr700_10/pdr700.data10',
'/oracle/PDR/sapdata3/pdr700_11/pdr700.data11',
'/oracle/PDR/sapdata3/pdr700_12/pdr700.data12',
'/oracle/PDR/sapdata4/pdr700_13/pdr700.data13',
'/oracle/PDR/sapdata4/pdr700_14/pdr700.data14',
'/oracle/PDR/sapdata4/pdr700_15/pdr700.data15',
'/oracle/PDR/sapdata4/pdr700_16/pdr700.data16',
'/oracle/PDR/sapdata1/pdrusr_1/pdrusr.data1',
'/oracle/PDR/sapdata4/pdr_21/pdr.data21',
'/oracle/PDR/sapdata4/pdr_22/pdr.data22',
'/oracle/PDR/sapdata4/pdr_23/pdr.data23',
'/oracle/PDR/sapdata4/pdr_24/pdr.data24',
'/oracle/PDR/sapdata4/pdr_25/pdr.data25',
'/oracle/PDR/sapdata4/pdr_26/pdr.data26',
'/oracle/PDR/sapdata1/pdr_27/pdr.data27',
'/oracle/PDR/sapdata4/pdr_28/pdr.data28',
'/oracle/PDR/sapdata3/pdr_29/pdr.data29',
'/oracle/PDR/sapdata2/pdr_30/pdr.data30',
'/oracle/PDR/sapdata5/pdr_31/pdr.data31',
'/oracle/PDR/sapdata5/pdr_32/pdr.data32',
'/oracle/PDR/sapdata5/pdr_33/pdr.data33',
'/oracle/PDR/sapdata5/pdr_34/pdr.data34',
'/oracle/PDR/sapdata5/pdr_35/pdr.data35',
'/oracle/PDR/sapdata6/pdr_36/pdr.data36',
'/oracle/PDR/sapdata6/pdr_37/pdr.data37',
'/oracle/PDR/sapdata6/pdr_38/pdr.data38',
'/oracle/PDR/sapdata6/pdr_39/pdr.data39',
'/oracle/PDR/sapdata6/pdr_40/pdr.data40',
'/oracle/PDR/sapdata5/pdr700_17/pdr700.data17',
'/oracle/PDR/sapdata5/pdr700_18/pdr700.data18',
'/oracle/PDR/sapdata6/pdr700_19/pdr700.data19',
'/oracle/PDR/sapdata6/pdr700_20/pdr700.data20',
'/oracle/PDR/sapdata6/pdr700_21/pdr700.data21',
'/oracle/PDR/sapdata5/pdr700_22/pdr700.data22',
'/oracle/PDR/sapdata6/pdr_41/pdr.data41',
'/oracle/PDR/sapdata6/pdr_42/pdr.data42',
'/oracle/PDR/sapdata6/pdr_43/pdr.data43',
'/oracle/PDR/sapdata5/pdr_44/pdr.data44',
'/oracle/PDR/sapdata5/pdr_45/pdr.data45'
CHARACTER SET UTF8
-- Commands to re-create incarnation table
-- Below log names MUST be changed to existing filenames on
-- disk. Any one log file from each branch can be used to
-- re-create incarnation records.
-- Recovery is required if any of the datafiles are restored backups,
-- or if the last shutdown was not normal or immediate.
RECOVER DATABASE
-- All logs need archiving and a log switch is needed.
ALTER SYSTEM ARCHIVE LOG ALL;
-- Database can now be opened normally.
ALTER DATABASE OPEN;
-- Commands to add tempfiles to temporary tablespaces.
-- Online tempfiles have complete space information.
-- Other tempfiles may require adjustment.
ALTER TABLESPACE PSAPTEMP ADD TEMPFILE '/oracle/PDR/sapdata2/temp_1/temp.data1'
SIZE 3380M REUSE AUTOEXTEND ON NEXT 20971520 MAXSIZE 10000M;
-- End of tempfile additions.
-- Set #2. RESETLOGS case
-- The following commands will create a new control file and use it
-- to open the database.
-- Data used by Recovery Manager will be lost.
-- The contents of online logs will be lost and all backups will
-- be invalidated. Use this only if online logs are damaged.
-- After mounting the created controlfile, the following SQL
-- statement will place the database in the appropriate
-- protection mode:
-- ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "PDR" RESETLOGS ARCHIVELOG
MAXLOGFILES 255
MAXLOGMEMBERS 3
MAXDATAFILES 254
MAXINSTANCES 50
MAXLOGHISTORY 23360
LOGFILE
GROUP 21 (
'/oracle/PDR/origlogA/log_g21m1.dbf',
'/oracle/PDR/mirrlogA/log_g21m2.dbf'
) SIZE 250M,
GROUP 22 (
'/oracle/PDR/origlogA/log_g22m1.dbf',
'/oracle/PDR/mirrlogA/log_g22m2.dbf'
) SIZE 250M,
GROUP 23 (
'/oracle/PDR/origlogB/log_g23m1.dbf',
'/oracle/PDR/mirrlogB/log_g23m2.dbf'
) SIZE 250M,
GROUP 24 (
'/oracle/PDR/origlogB/log_g24m1.dbf',
'/oracle/PDR/mirrlogB/log_g24m2.dbf'
) SIZE 250M
-- STANDBY LOGFILE
DATAFILE
'/oracle/PDR/sapdata1/system_1/system.data1',
'/oracle/PDR/sapdata3/undo_1/undo.data1',
'/oracle/PDR/sapdata1/sysaux_1/sysaux.data1',
'/oracle/PDR/sapdata1/pdr_1/pdr.data1',
'/oracle/PDR/sapdata1/pdr_2/pdr.data2',
'/oracle/PDR/sapdata1/pdr_3/pdr.data3',
'/oracle/PDR/sapdata1/pdr_4/pdr.data4',
'/oracle/PDR/sapdata1/pdr_5/pdr.data5',
'/oracle/PDR/sapdata2/pdr_6/pdr.data6',
'/oracle/PDR/sapdata2/pdr_7/pdr.data7',
'/oracle/PDR/sapdata2/pdr_8/pdr.data8',
'/oracle/PDR/sapdata2/pdr_9/pdr.data9',
'/oracle/PDR/sapdata2/pdr_10/pdr.data10',
'/oracle/PDR/sapdata3/pdr_11/pdr.data11',
'/oracle/PDR/sapdata3/pdr_12/pdr.data12',
'/oracle/PDR/sapdata3/pdr_13/pdr.data13',
'/oracle/PDR/sapdata3/pdr_14/pdr.data14',
'/oracle/PDR/sapdata3/pdr_15/pdr.data15',
'/oracle/PDR/sapdata4/pdr_16/pdr.data16',
'/oracle/PDR/sapdata4/pdr_17/pdr.data17',
'/oracle/PDR/sapdata4/pdr_18/pdr.data18',
'/oracle/PDR/sapdata4/pdr_19/pdr.data19',
'/oracle/PDR/sapdata4/pdr_20/pdr.data20',
'/oracle/PDR/sapdata1/pdr700_1/pdr700.data1',
'/oracle/PDR/sapdata1/pdr700_2/pdr700.data2',
'/oracle/PDR/sapdata1/pdr700_3/pdr700.data3',
'/oracle/PDR/sapdata1/pdr700_4/pdr700.data4',
'/oracle/PDR/sapdata2/pdr700_5/pdr700.data5',
'/oracle/PDR/sapdata2/pdr700_6/pdr700.data6',
'/oracle/PDR/sapdata2/pdr700_7/pdr700.data7',
'/oracle/PDR/sapdata2/pdr700_8/pdr700.data8',
'/oracle/PDR/sapdata3/pdr700_9/pdr700.data9',
'/oracle/PDR/sapdata3/pdr700_10/pdr700.data10',
'/oracle/PDR/sapdata3/pdr700_11/pdr700.data11',
'/oracle/PDR/sapdata3/pdr700_12/pdr700.data12',
'/oracle/PDR/sapdata4/pdr700_13/pdr700.data13',
'/oracle/PDR/sapdata4/pdr700_14/pdr700.data14',
'/oracle/PDR/sapdata4/pdr700_15/pdr700.data15',
'/oracle/PDR/sapdata4/pdr700_16/pdr700.data16',
'/oracle/PDR/sapdata1/pdrusr_1/pdrusr.data1',
'/oracle/PDR/sapdata4/pdr_21/pdr.data21',
'/oracle/PDR/sapdata4/pdr_22/pdr.data22',
'/oracle/PDR/sapdata4/pdr_23/pdr.data23',
'/oracle/PDR/sapdata4/pdr_24/pdr.data24',
'/oracle/PDR/sapdata4/pdr_25/pdr.data25',
'/oracle/PDR/sapdata4/pdr_26/pdr.data26',
'/oracle/PDR/sapdata1/pdr_27/pdr.data27',
'/oracle/PDR/sapdata4/pdr_28/pdr.data28',
'/oracle/PDR/sapdata3/pdr_29/pdr.data29',
'/oracle/PDR/sapdata2/pdr_30/pdr.data30',
'/oracle/PDR/sapdata5/pdr_31/pdr.data31',
'/oracle/PDR/sapdata5/pdr_32/pdr.data32',
'/oracle/PDR/sapdata5/pdr_33/pdr.data33',
'/oracle/PDR/sapdata5/pdr_34/pdr.data34',
'/oracle/PDR/sapdata5/pdr_35/pdr.data35',
'/oracle/PDR/sapdata6/pdr_36/pdr.data36',
'/oracle/PDR/sapdata6/pdr_37/pdr.data37',
'/oracle/PDR/sapdata6/pdr_38/pdr.data38',
'/oracle/PDR/sapdata6/pdr_39/pdr.data39',
'/oracle/PDR/sapdata6/pdr_40/pdr.data40',
'/oracle/PDR/sapdata5/pdr700_17/pdr700.data17',
'/oracle/PDR/sapdata5/pdr700_18/pdr700.data18',
'/oracle/PDR/sapdata6/pdr700_19/pdr700.data19',
'/oracle/PDR/sapdata6/pdr700_20/pdr700.data20',
'/oracle/PDR/sapdata6/pdr700_21/pdr700.data21',
'/oracle/PDR/sapdata5/pdr700_22/pdr700.data22',
'/oracle/PDR/sapdata6/pdr_41/pdr.data41',
'/oracle/PDR/sapdata6/pdr_42/pdr.data42',
'/oracle/PDR/sapdata6/pdr_43/pdr.data43',
'/oracle/PDR/sapdata5/pdr_44/pdr.data44',
'/oracle/PDR/sapdata5/pdr_45/pdr.data45'
CHARACTER SET UTF8
-- Commands to re-create incarnation table
-- Below log names MUST be changed to existing filenames on
-- disk. Any one log file from each branch can be used to
-- re-create incarnation records.
-- ALTER DATABASE REGISTER LOGFILE '/oracle/PDR/oraarch/PDRarch1_1_624465037.dbf
-- Recovery is required if any of the datafiles are restored backups,
-- or if the last shutdown was not normal or immediate.
RECOVER DATABASE USING BACKUP CONTROLFILE
-- Database can now be opened zeroing the online logs.
ALTER DATABASE OPEN RESETLOGS;
-- Commands to add tempfiles to temporary tablespaces.
-- Online tempfiles have complete space information.
-- Other tempfiles may require adjustment.
ALTER TABLESPACE PSAPTEMP ADD TEMPFILE '/oracle/PDR/sapdata2/temp_1/temp.data1'
SIZE 3380M REUSE AUTOEXTEND ON NEXT 20971520 MAXSIZE 10000M;
-- End of tempfile additions. -
How can I be sure that, my redo transport services has been enable and LGWR is transferring on another machine??
source:
ALTER SYSTEM SET LOG_ARCHIVE_DEST_2='SERVICE=DS02.BD.NET LGWR ASYNC OPTIONAL NOREGISTER
VALID_FOR=(ALL_LOGFILES,PRIMARY_ROLE)' SCOPE=SPFILE;
ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=ENABLE SCOPE=SPFILE;
ALTER SYSTEM SET LOG_ARCHIVE_CONFIG='send' SCOPE=SPFILE;
destination:
ALTER SYSTEM SET LOG_ARCHIVE_DEST_2='LOCATION=/home/arc_dest/srl_dbs1 MANDATORY VALID_FOR=(STANDBY_LOGFILE,PRIMARY_ROLE)' SCOPE=SPFILE;
ALTER SYSTEM SET LOG_ARCHIVE_CONFIG='recieve' SCOPE=SPFILE;
ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=ENABLE SCOPE=SPFILE;
this is what I have done.What's your Oracle version?
If you are trying to build Data Guard, just follow the document,
Oracle® Data Guard Concepts and Administration
10g Release 2 (10.2) -
POS DM enhancement for BI datasource
Hi,
We have a business requirement to get the invoice number being generated at the POS(Triversity GM) to POS DM via XI.
This invoice number is the combination of (Store noregister noSystem generated number)
When we map this number from POS to POS DM using XI there are some extended fields(place holders) available in BAPI.
Now this data needs to be mapped in POS DM to further provide this data to BI.
Please let us know how this can be done like which datasource and which extract structure needs to be utilised and what are the further steps to be carried to get that same data to be available in BI reporting.
Please explain the steps to configure this.
Thanks and regards,
Srini.Any answers to the above query. I am also facing a similar issue. can someone throw some light on this.
Thanks -
Schema Level Bidirectional streams - works only in one direction
Hi All,
we are implementing bidirectional streams at schema level(using scott schema for testing).
Our environment and different parameters are:
Source:
OS =Win2003 64bit
DB Version= 10.2.0.5.0 64bit
DB SID=CIBSPROD
log_archive_dest_1 LOCATION=E:\DBFILES\ArchiveLog\CIBSPROD\PrimaryRole VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=CIBSPROD
log_archive_dest_2 SERVICE=CIBSREP LGWR ASYNC NOREGISTER VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=CIBSREP
job_queue_processes=2
Dest:
OS =Win2003 64bit
DB Version= 10.2.0.5.0 64bit
DB SID=CIBSREP
log_archive_dest_1 LOCATION=E:\DBFILES\ArchiveLog\CIBSREP\PrimaryRole VALID_FOR=(ONLINE_LOGFILE,PRIMARY_ROLE) DB_UNIQUE_NAME=CIBSREP
log_archive_dest_2 SERVICE=CIBSPROD LGWR ASYNC NOREGISTER VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=CIBSPROD
job_queue_processes=2
Follow the "Streams Bi-Directional Setup [ID 471845.1]" article
Problem we are facing is changes are propagating from Source(CIBSPROD) to Destination(CIBSREP) BUT NOT from Destination to Source Database(although archivelogs are shipping from Destination to Source).
Executed below script for configuration:
SET ECHO ON
SPOOL strm-reconfig-scott.out
conn sys/&sys_pwd_source@CIBSPROD as sysdba
EXEC DBMS_STREAMS_ADM.REMOVE_STREAMS_CONFIGURATION;
DROP USER STRMADMIN CASCADE;
CREATE USER strmadmin IDENTIFIED BY strmadmin DEFAULT TABLESPACE streams_tbs QUOTA UNLIMITED ON streams_tbs;
GRANT CONNECT, RESOURCE, AQ_ADMINISTRATOR_ROLE,DBA to STRMADMIN;
EXECute DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE('STRMADMIN');
drop database link CIBSREP;
create public database link CIBSREP connect to strmadmin identified by strmadmin using 'CIBSREP';
conn sys/&sys_pwd_downstream@CIBSREP as sysdba
EXEC DBMS_STREAMS_ADM.REMOVE_STREAMS_CONFIGURATION;
DROP USER STRMADMIN CASCADE;
CREATE USER strmadmin IDENTIFIED BY strmadmin DEFAULT TABLESPACE streams_tbs QUOTA UNLIMITED ON streams_tbs;
GRANT CONNECT, RESOURCE, AQ_ADMINISTRATOR_ROLE,DBA to STRMADMIN;
EXECute DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE('STRMADMIN');
drop user SCOTT CASCADE;
create user SCOTT identified by scott175;
GRANT CONNECT, RESOURCE to SCOTT;
drop database link CIBSPROD;
create public database link CIBSPROD connect to strmadmin identified by strmadmin using 'CIBSPROD';
--Set up 2 queues for Capture and apply in CIBSPROD Database
conn strmadmin/strmadmin@CIBSPROD
EXEC DBMS_STREAMS_ADM.SET_UP_QUEUE( queue_table => 'APPLY_CIBSPROD_TAB', queue_name => 'APPLY_CIBSPROD', queue_user => 'strmadmin');
EXEC DBMS_STREAMS_ADM.SET_UP_QUEUE( queue_table => 'CAPTURE_CIBSPROD_TAB', queue_name => 'CAPTURE_CIBSPROD', queue_user => 'strmadmin');
--Set up 2 queues for Capture and apply in CIBSREP Database
conn strmadmin/strmadmin@CIBSREP
EXEC DBMS_STREAMS_ADM.SET_UP_QUEUE( queue_table => 'APPLY_CIBSREP_TAB', queue_name => 'APPLY_CIBSREP', queue_user => 'strmadmin');
EXEC DBMS_STREAMS_ADM.SET_UP_QUEUE( queue_table => 'CAPTURE_CIBSREP_TAB', queue_name => 'CAPTURE_CIBSREP', queue_user => 'strmadmin');
--Configure capture,apply and propagation process on CIBSPROD database.
conn strmadmin/strmadmin@CIBSPROD
EXEC dbms_streams_adm.add_schema_rules ( schema_name => 'scott', streams_type => 'CAPTURE', streams_name => 'CAPTURE_CIBSPROD', queue_name => 'CAPTURE_CIBSPROD', include_dml => true, include_ddl => true, inclusion_rule => true);
EXEC dbms_streams_adm.add_schema_rules ( schema_name => 'scott', streams_type => 'APPLY', streams_name => 'APPLY_CIBSPROD', queue_name => 'APPLY_CIBSPROD', include_dml => true, include_ddl => true, source_database => 'CIBSREP');
EXEC DBMS_APPLY_ADM.SET_PARAMETER(apply_name => 'APPLY_CIBSPROD', parameter => 'PARALLELISM', value => '5');
EXEC DBMS_APPLY_ADM.SET_PARAMETER(apply_name => 'APPLY_CIBSPROD', parameter => '_HASH_TABLE_SIZE', value => '10000000');
EXEC DBMS_APPLY_ADM.SET_PARAMETER(apply_name => 'APPLY_CIBSPROD', parameter => 'TXN_LCR_SPILL_THRESHOLD', value => '1000000');
EXEC DBMS_APPLY_ADM.SET_PARAMETER(apply_name => 'APPLY_CIBSPROD', parameter => 'DISABLE_ON_ERROR', value => 'N');
EXEC DBMS_APPLY_ADM.Set_parameter(apply_name => 'APPLY_CIBSPROD', parameter => '_dynamic_stmts',value => 'Y');
EXEC DBMS_APPLY_ADM.Set_parameter(apply_name => 'APPLY_CIBSPROD', parameter => 'COMMIT_SERIALIZATION',value => 'NONE');
EXEC DBMS_APPLY_ADM.Set_parameter(apply_name => 'APPLY_CIBSPROD', parameter => '_RESTRICT_ALL_REF_CONS',value => 'N');
EXEC DBMS_APPLY_ADM.Set_parameter(apply_name => 'APPLY_CIBSPROD', parameter => 'ALLOW_DUPLICATE_ROWS',value => 'Y');
EXEC dbms_streams_adm.add_schema_propagation_rules ( schema_name => 'scott', streams_name => 'PROP_CIBSPROD_to_CIBSREP', source_queue_name => 'CAPTURE_CIBSPROD', destination_queue_name => 'APPLY_CIBSREP@CIBSREP', include_dml => true, include_ddl => true, source_database => 'CIBSPROD');
--Configure capture,apply and propagation process process on CIBSREP Database
conn strmadmin/strmadmin@CIBSREP
EXEC dbms_streams_adm.add_schema_rules ( schema_name => 'scott', streams_type => 'CAPTURE', streams_name => 'CAPTURE_CIBSREP', queue_name => 'CAPTURE_CIBSREP', include_dml => true, include_ddl => true);
EXEC dbms_streams_adm.add_schema_rules ( schema_name => 'scott', streams_type => 'APPLY', streams_name => 'APPLY_CIBSREP', queue_name => 'APPLY_CIBSREP', include_dml => true, include_ddl => true, source_database => 'CIBSPROD');
EXEC DBMS_APPLY_ADM.SET_PARAMETER(apply_name => 'APPLY_CIBSREP', parameter => 'PARALLELISM', value => '5');
EXEC DBMS_APPLY_ADM.SET_PARAMETER(apply_name => 'APPLY_CIBSREP', parameter => '_HASH_TABLE_SIZE', value => '10000000');
EXEC DBMS_APPLY_ADM.SET_PARAMETER(apply_name => 'APPLY_CIBSREP', parameter => 'TXN_LCR_SPILL_THRESHOLD', value => '1000000');
EXEC DBMS_APPLY_ADM.SET_PARAMETER(apply_name => 'APPLY_CIBSREP', parameter => 'DISABLE_ON_ERROR', value => 'N');
EXEC DBMS_APPLY_ADM.Set_parameter(apply_name => 'APPLY_CIBSREP', parameter => '_dynamic_stmts',value => 'Y');
EXEC DBMS_APPLY_ADM.Set_parameter(apply_name => 'APPLY_CIBSREP', parameter => 'COMMIT_SERIALIZATION',value => 'NONE');
EXEC DBMS_APPLY_ADM.Set_parameter(apply_name => 'APPLY_CIBSREP', parameter => '_RESTRICT_ALL_REF_CONS',value => 'N');
EXEC DBMS_APPLY_ADM.Set_parameter(apply_name => 'APPLY_CIBSREP', parameter => 'ALLOW_DUPLICATE_ROWS',value => 'Y');
EXEC dbms_streams_adm.add_schema_propagation_rules ( schema_name => 'scott', streams_name => 'PROP_CIBSREP_to_CIBSPROD', source_queue_name => 'CAPTURE_CIBSREP', destination_queue_name => 'APPLY_CIBSPROD@CIBSPROD', include_dml => true, include_ddl => true, source_database => 'CIBSREP');
--Import export schema
host exp USERID=SYSTEM/cibsmgr@CIBSPROD parfile=expparfile-scott.txt
host imp USERID=SYSTEM/cibsmgr@CIBSREP parfile=impparfile-scott.txt
--Start capture and apply processes on CIBSREP
conn strmadmin/strmadmin@CIBSREP
EXEC dbms_capture_adm.start_capture (capture_name=>'CAPTURE_CIBSREP');
EXEC DBMS_APPLY_ADM.START_APPLY(apply_name => 'APPLY_CIBSREP');
--Start capture and apply processes on CIBSPROD
conn strmadmin/strmadmin@CIBSPROD
EXEC dbms_capture_adm.start_capture (capture_name=>'CAPTURE_CIBSPROD');
EXEC DBMS_APPLY_ADM.START_APPLY(apply_name => 'APPLY_CIBSPROD');
SPOOL OFF
What we have missed in the configuration?
Regards,
AsimFind error SRC database "ORA-26687: no instantiation SCN provided fro SCOTT.STRMTEST in source database CIBSREP"
SCOTT.STRMTEST is heartbeat table used from streams replication on Source and Destination database -
ORA-01184: logfile group 1 already exists
After startup nomount, I try to create database as follows:
CREATE DATABASE SISDEV04
LOGFILE GROUP 1 '/sisdev04/dbs/log01a.dbf'
SIZE 10M
, GROUP 1 '/sisdev04/dbs/log01b.dbf'
SIZE 10M
, GROUP 2 '/sisdev04/dbs/log02a.dbf'
SIZE 10M
, GROUP 2 '/sisdev04/dbs/log02b.dbf'
SIZE 10M
NOARCHIVELOG
CHARACTER SET ZHT16BIG5
NATIONAL CHARACTER SET ZHT16BIG5
DATAFILE '/sisdev04/dbs/system01.dbf'
SIZE 210M AUTOEXTEND OFF
, '/sisdev04/dbs/rbs01.dbf'
SIZE 105M AUTOEXTEND OFF
, '/sisdev04/dbs/temp01.dbf'
SIZE 105M AUTOEXTEND OFF
, '/sisdev04/dbs/users01.dbf'
SIZE 1050M AUTOEXTEND OFF
, '/sisdev04/dbs/ts_index_ivr01.dbf'
SIZE 105M AUTOEXTEND OFF
, '/sisdev04/dbs/ts_ivr01.dbf'
SIZE 21M AUTOEXTEND OFF
, '/sisdev04/dbs/ts_ems01.dbf'
SIZE 21M AUTOEXTEND OFF
, '/sisdev04/dbs/ts_index_ems01.dbf'
SIZE 21M AUTOEXTEND OFF
However, I receive such error:
ORA-01501: CREATE DATABASE failed
ORA-01184: logfile group 1 already exists
I have checked that there is no files in '/sisdev04/dbs/' before I issue the command, what can I do?Hello...
Excuse me..
May be I have same problem..
I use Oracle Streams to replicate table in one to another database. While i configure setup replication occur this errror.
How to resolve this problem i have?
SQL> SQL> Connecting to source database as STRMADMIN
SQL> Executing ..
SQL> connect STRMADMIN/******
SQL> Connected.
SQL> SQL> SQL> Executing ..
SQL> DROP DATABASE LINK DBSTG
SQL>
Database link dropped.
SQL> SQL> Executing ..
SQL> CREATE DATABASE LINK DBSTG connect to strmadmin identified by ****** using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.4.10.21)(PORT=1521)))(CONNECT_DATA=(SID=dbstg)(server=DEDICATED)))'
SQL>
Database link created.
SQL> Executing ..
SQL> ALTER SYSTEM SET LOG_ARCHIVE_CONFIG='DG_CONFIG=(dbstg,dbsd)' scope=both
SQL>
System altered.
SQL> Executing ..
SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_3='SERVICE="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.4.10.21)(PORT=1521)))(CONNECT_DATA=(SID=dbstg)(server=DEDICATED)))" ASYNC NOREGISTER VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=dbstg' scope=both
SQL>
System altered.
SQL> Executing ..
SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_3=DEFER scope=both
SQL>
System altered.
SQL> CONNECT TO DOWNSTREAM DB AND SETUP LOG PARAMS
SQL> Executing ..
SQL> connect strmadmin/******@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.4.10.21)(PORT=1521)))(CONNECT_DATA=(SID=dbstg)(server=DEDICATED)))
SQL> Connected.
SQL> SQL> Executing ..
SQL> DROP DATABASE LINK DBSD
SQL>
Database link dropped.
SQL> SQL> SQL> Executing ..
SQL> CREATE DATABASE LINK DBSD connect to STRMADMIN identified by ****** using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=t0031)(PORT=1521)))(CONNECT_DATA=(SID=dbsd)(server=DEDICATED)))'
SQL>
Database link created.
SQL> Executing ..
SQL> CREATE OR REPLACE DIRECTORY STANDBY_LOG_LOC AS '/u01/app/oracle/admin/dbstg/srl_dbsd/'
SQL>
Directory created.
SQL> 1* CREATE OR REPLACE DIRECTORY STANDBY_LOG_LOC AS '/u01/app/oracle/admin/dbstg/srl_dbsd/'
SQL> Executing ..
SQL> ALTER SYSTEM SET LOG_ARCHIVE_CONFIG='DG_CONFIG=(dbstg,dbsd)' scope=both
SQL>
System altered.
SQL> Executing ..
SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_3=ENABLE scope=both
SQL>
System altered.
SQL> Executing ..
SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_3='LOCATION=/u01/app/oracle/admin/dbstg/srl_dbsd/ VALID_FOR=(STANDBY_LOGFILE,PRIMARY_ROLE)'scope=both
SQL>
System altered.
SQL> Executing ..
SQL> ALTER DATABASE ADD STANDBY LOGFILE GROUP 4 ('/u01/app/oracle/admin/dbstg/srl_dbsd/log4a.rdo', '/u01/app/oracle/admin/dbstg/srl_dbsd/slog4b.rdo') SIZE 104857600
SQL> ALTER DATABASE ADD STANDBY LOGFILE GROUP 4 ('/u01/app/oracle/admin/dbstg/srl_dbsd/log4a.rdo', '/u01/app/oracle/admin/dbstg/srl_dbsd/slog4b.rdo') SIZE 104857600
ERROR at line 1:
ORA-01184: logfile group 4 already exists
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Error from SQLPLUS: 160 -
HTMLEditor lost control after setHtmlText twice
I setup applicaton using javafx.scene.web.HTMLEditor.
I init HTMLEditor ,setHtmlText ,and run fine.
After I invoke setHtmlText twice or more , HTMLEditor lost control , HTMLEditor can no be edit any more.
and I notice no document about HTMLEditor at JavaFx 2.0 release notes, what is the matter.
plz help.
Edited by: user2411627 on 2011-8-3 下午8:12Hi Darryl ,
Here is the SSCCE for setHtmlText ,run up , HTMLEditor is edtiable, push Button "Set HTML" HTMLEditor lost control ,can not edit any more.
run on JDK 1.6.0_17
javafx_sdk-2_0-beta-b37-windows-i586-19_jul_2011.zip
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.VBox;
import javafx.scene.web.HTMLEditor;
import javafx.stage.Stage;
public class testhtmleditor extends Application {
HTMLEditor htmlview = null;
public void start(Stage stage) {
stage.setTitle("test HTMLEditor");
stage.setResizable(false);
Scene scene = new Scene(new Group(), 600, 400);
stage.setScene(scene);
Group root = new Group();
scene.setRoot(root);
VBox vbox = new VBox();
Button btn = new Button("Set HTML");
btn.setOnMouseReleased(new EventHandler<MouseEvent>() {
public void handle(MouseEvent me) {
htmlview.setHtmlText("<HTML> <HEAD> "
+ " <TITLE> HTMLEditor</TITLE> "
+ "</HEAD> "
+ " <BODY> "
+ " <p>test HTMLEditor</p>"
+ "</BODY> "
+"</HTML>");
htmlview = new HTMLEditor();
vbox.getChildren().addAll(btn,htmlview);
root.getChildren().add(vbox);
stage.setVisible(true);
public static void main(String[] args) {
Application.launch(args);
}Edited by: noregister on Aug 4, 2011 6:57 AM
Maybe you are looking for
-
Need suggestion on OSB design..
Hi i am facing following issue:- I have 4 interface that i need to do using OSB. I have separate xsd's for each interface. Each interface may have its own message flow, Now what i want to do is:- Use only one WSDL ,one Proxy and in business service..
-
The ability to measure cash in and outflows based on the Profit Centers
Hi, As you may be aware, we are currently undertaking a global project to split our Balance Sheet based on the divisional structure (Profit Centres in SAP). The splitting of Receivables and Payables by Profit Centre. We have an additional requiremen
-
I have many apps where i must swipe down and it constantly brings down the notification screen. Is there anyway to disable this or activate it a different way because this really bugs me.
-
I have trouble connecting a Headset with the Speck Candyshell case installed
I have a iPhone 4 with aCandyShell case. I do not like the headset that comes with the iPhone as it hurts my ears, and while I can plug in that headset with the CandyShell installed I would like to use a different headset... ideally a Sony MDR V300 t
-
Can Norton Antivirus for Macintosh detect a PC virus in a Mac file or in an e-mail attachment readable by a Mac? Thanks for info. Mario Palmieri