Duplicate/clone a BO XI R2 system
Hi,
we have a lot of problem to copy objects between 2 BO XI R2 server (locate in different country , no direct access) via BIAR file. If we export some users in the BIAR file we can't see th elist of the user swith the Wizard Import on the target system.
So is it possible and also what is the procedure to copy a BO XI R2 system on database level (in our case Oracle) on SUSE Linux ? (is it only a database copy ?)
Regards,
Eric
Hi
Yes, you can go for database copy & then do the relevent steps (2 to 14) mentioned under "Completing a CMS database migration --> To complete a CMS database migration on Windows" on page number 270 in http://help.sap.com/businessobject/product_guides/boexir2/en/xir2_bip_install_en.pdf
Please go through the steps first before implementing it.
Regards
Ashwini
Similar Messages
-
Every time I sync my iCal on my computer through iTunes with my iPhone 4 or iPad, duplicate entries are generated on both systems. What am I doing wrong or how can I avoid the duplications? I have been doing this for several years and this problem is a more recent issue, like in the last 6 months. I have been deleting the duplicate entries, on both systems, but some duplicates reappear through "general" entries that are connected to the correct color for a Calendar, but not the name. I am going nuts and wasting tons of hours trying to get the 3 calendars to sync without generating duplicate entries.
Choose one of the Calenders on ONE of the computers OR the MobileMe as the Master / correct account.
The REINITAILISE the data of MobileMe within preferences on the computer defining the datatransfer correctly (in the advanced box of preferences). The synchronise iphone contacts and calender directly on-line to MobileMe.
I posted a question on this today, and gave my own reply !
Regards,
Kevin -
Hi,
I am running DB Enterprise Ed v 10.2 and my main DB is in +ASM.
I need to script a regular copy of this DB to refresh the support DB, also in +ASM.
My problem is that I can not permit this support DB to be opened for general use until I have stopped certain jobs running on the internal dbms_scheduler and updated the oracle directories (dba_directories) with support locations. Thus I need to have a clone / duplicate method that stops short of actually opening the database at the end, or some way to ensure that it only opens it RESTRICTED mode.
I think that both the RMAN DUPLICATE command and the Enterprise Manager CLONE jobs leave the new database open....
Any suggestions appreciated.Since you mentioned scripting, then it seems that you will have full control of the cloning process...
So if that is the case then perhpas you can restrict access to the cloned database using "alter system enable restricted session".
Then once your cloning process is done and after you have done all the necessary housekeeping stuff, then turn off the restricted access with
"alter system disable restricted session". -
How to avoid the duplicate receipts in SAP and Barcode system
Hi Everyone
We are using SAP ECC 5.0.Our receving is done by bar code system and it updates the SAP system. We have two separate database systems one for Bar code systems and another for SAP. Sometimes while receiving RFID scanner shows material is not received or failed and we have to receive it manually in the SAP system. Sometimes barcode system might have received but it is displayig error message, material receipt failed and we enter manually in the SAP and it becomes duplicate and creating inventory problems. Is there anyway we can fix this problem like while receving manually in the SAP system it should alert or pop message like material already received. What change we need to do in the configuration side.
Your help is greatly appreciated.
thanks in advance
MuraliLook at the posts closely:might not be needed if formatted ;)
create or replace procedure splitsms as
begin
insert into scott.smssplit (r,c,s,tc,na,tc2,na2,tc3,na3,tc4,na4,wther,sno)
select substr(rcstcnatcnatcnatcnawther,1,2) r,
substr(rcstcnatcnatcnatcnawther,3,2) c,
substr(rcstcnatcnatcnatcnawther,5,1) s,
substr(rcstcnatcnatcnatcnawther,6,3) tc,
substr(rcstcnatcnatcnatcnawther,9,3) na,
substr(rcstcnatcnatcnatcnawther,12,3) tc2,
substr(rcstcnatcnatcnatcnawther,15,3) na2,
substr(rcstcnatcnatcnatcnawther,18,3) tc3,
substr(rcstcnatcnatcnatcnawther,21,3) na3,
substr(rcstcnatcnatcnatcnawther,24,3) tc4,
substr(rcstcnatcnatcnatcnawther,27,3) na4,
substr(rcstcnatcnatcnatcnawther,30,10) wther,
sno
from scott.sms1 a
where sno = (select max(sno)
from sms1
where sno != a.sno
); ---------------> added where clause with table alias.
end;Regards
Etbin -
Is it possible (or advisable) to clone a complete System volume to a DVD rather than an external HD (don't have one)? And,if so, is it necessary to use cloning software to do this, or could I just drag and drop the entire volumes to the DVD using Toast?
I want to completely erase my 80 GB HD and re-partition it. I have 3 System volumes containing Tiger, Panther and OS 9.2. All of these can be pared down to a size that will fit on a DVD.
I would then do a fresh install of the 3 systems from install discs and selectively re-install applications, folders, etc.
A search of this forum hasn't found a thread dealing with this particular question.
G4 533 DA, Mercury Extreme G4 1.33GHz CPU Mac OS X (10.4.8) ATI Radeon 9200, 1 GB RAM
G4 533 DA, Mercury Extreme G4 1.33GHz CPU Mac OS X (10.4.8) ATI Radeon 9200, 1 GB RAM/Applications/Utilties/Disc Utility can make a complete copy of a Volume into a disc image, which you can burn to DVD and later restore back to the disc, all using Disc Utility. You might try this out with a small set of data first to make sure you get it working before you destroy your data when you reformat/initialize the drive. And make more than one DVD of each image just in case.
Toast has a Mac Volume option, but I'm not sure if that was just for making OS 9 bootable CDs? You might miss some of the OS X system files. Toast is bundled with Deja Vu which can make bootable clones of OS X systems, I have not tried burning to DVD with Deja Vu, but I do make a bootable backup nightly to an external FW drive with Deja Vu. Deja Vu is a System Preference Pane, if you didn't install it when you installed Toast, launch Toast and Run the Setup Assistant again from the Help Menu. (I am using Toast 6) I am not sure how to restore the bootable system from a set of DVDs if the source volume spans more than one DVD....never done that.
http://propagandaprod.com/dejavu.html
Carbon Copy Cloner and Super Duper can clone an OS X bootable system, not sure if they can burn to DVD?
External drives FW/USB are pretty cheap, just back up the whole 80GB drive to an external drive, you may need to match the current partitioning scheme more or less. When you buy a Mac-friendly external drive, you may also get some additional third-party disc utility and backup software bundled with it.
http://www.bombich.com/software/ccc.html
http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html
Before you copy the disc, run Disc Utility to repair the disc until you get no errors, and repair permissions.
Good luck. -
Duplicate a system image onto 6 Different machines
Hello peoples,
Quick query. I work in a John Lewis shop in the UK, I've set one of our display imac's up to have all the demo content installed for Mac OS X Lion. But id rather not go around each machine and install everything again manually. What would you advise is the best way to create a system image that i can just install onto each of the other machines to the exact same state I have the one i've already done?
Is is best to clone the drive using carbon copy cloner? then just use system restore option from disk utilities? Will this work with the fact the macs have all different seriel numbers etc??
Thanks for your time
Nicholas TrubyAs long as the machines are all the same model, you can Carbon Copy Cloner the master to a blank external hard drive then go around to each Mac and hold the option key down, boot off the external clone and clone the OS X partition of the clone to the internal OS X partition on the Mac's boot drive.
You could also use Firewire Target Disk Mode (hold T and boot) to make the target Mac's boot drive appear on the screen of the first Mac and use CCC that way as well.
Then the cloned machine can be used to clone to others etc., if you have a lot.
I read a article where someone cloned about 100 or so Mac Mini's this way from one master image -
Error while duplicate database from one server to another server
Hi there,
I am practicing duplicate database from one single database server to another server. Hardware and driver path on 2 machines is the same. Here are my steps:
--------------------- Clone site:
1. modify listener.ora with content:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
ADR_BASE_LISTENER = /u01/app/oracle
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
(SID_NAME= orcl)
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON
2. stop and start listener again, message show like :
Service “orcl” has 1 instance(s).
Instance “orcl”, status UNKNOWN, has 1 handler(s) for this service…
The command completed successfully
3. create pfile from spfile.
4. shutdown and startup nomount with pfile is new pfile create from step 3.
--------------------------------------- Source site
1. modify tnsnames.ora with content like:
VVCOREDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = vvcoredb)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 10.254.1.235) (PORT=1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
2. run command from rman like these:
rman> connect target sys@vvcoredb
rman> target database Password:
rman> connect auxiliary sys@orcl
rman> auxiliary database Password:
rman> DUPLICATE TARGET DATABASE to orcl from active database spfile nofilenamecheck;
Then the result show below:
Starting Duplicate Db at 24-SEP-12
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=63 device type=DISK
contents of Memory Script:
backup as copy reuse
targetfile '/u01/app/oracle/product/11.2.0/db_1/dbs/spfilevvcoredb.ora' auxiliary format
'/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora' ;
sql clone "alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''";
executing Memory Script
Starting backup at 24-SEP-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=74 device type=DISK
Finished backup at 24-SEP-12
sql statement: alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''
contents of Memory Script:
sql clone "alter system set db_name =
''ORCL'' comment=
''duplicate'' scope=spfile";
shutdown clone immediate;
startup clone nomount;
executing Memory Script
sql statement: alter system set db_name = ''ORCL'' comment= ''duplicate'' scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/24/2012 17:44:12
RMAN-03015: error occurred in stored script Memory Script
RMAN-04014: startup failed: ORA-01261: Parameter db_recovery_file_dest destination string cannot be translated
ORA-01262: Stat failed on a file destination directory
Linux-x86_64 Error: 2: No such file or directory
I don't know what wrong with my pfile? I specify correct my pfile on clone site like this:
orcl.__db_cache_size=1476395008
orcl.__java_pool_size=16777216
orcl.__large_pool_size=16777216
orcl.__oracle_base='/u01/app/oracle'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=1342177280
orcl.__sga_target=1979711488
orcl.__shared_io_pool_size=0
orcl.__shared_pool_size=436207616
orcl.__streams_pool_size=0
*.audit_file_dest='/u01/app/oracle/admin/orcl/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/u01/app/oracle/oradata/orcl/control01.ctl','/u01/app/oracle/flash_recovery_area/orcl/control02.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='orcl'
*.db_recovery_file_dest='/u01/app/oracle/flash_recovery_area/vvcoredb'
*.db_recovery_file_dest_size=4070572032
*.diagnostic_dest='/u01/app/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.memory_target=3313500160
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.undo_tablespace='UNDOTBS1'
Please suggest me do i miss some steps when try to duplicate database?
Any suggestions are welcome.
Thanks in advance!
P/s: Sorry for my bad English.Oh god, it worked. Thank you. But i got another problem like this:
duplicate target database to orcl from active database spfile set "db_recovery_file_dest" = "/u01/app/oracle/flash_recovery_area/vvcoredb" nofilenamecheck;
Starting Duplicate Db at 24-SEP-12
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=63 device type=DISK
contents of Memory Script:
backup as copy reuse
targetfile '/u01/app/oracle/product/11.2.0/db_1/dbs/spfilevvcoredb.ora' auxiliary format
'/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora' ;
sql clone "alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''";
executing Memory Script
Starting backup at 24-SEP-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=74 device type=DISK
Finished backup at 24-SEP-12
sql statement: alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''
contents of Memory Script:
sql clone "alter system set db_name =
''ORCL'' comment=
''duplicate'' scope=spfile";
sql clone "alter system set db_recovery_file_dest =
''/u01/app/oracle/flash_recovery_area/vvcoredb'' comment=
'''' scope=spfile";
shutdown clone immediate;
startup clone nomount;
executing Memory Script
sql statement: alter system set db_name = ''ORCL'' comment= ''duplicate'' scope=spfile
sql statement: alter system set db_recovery_file_dest = ''/u01/app/oracle/flash_recovery_area/vvcoredb'' comment= '''' scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 3307048960 bytes
Fixed Size 2217872 bytes
Variable Size 1811941488 bytes
Database Buffers 1476395008 bytes
Redo Buffers 16494592 bytes
contents of Memory Script:
sql clone "alter system set db_name =
''VVCOREDB'' comment=
''Modified by RMAN duplicate'' scope=spfile";
sql clone "alter system set db_unique_name =
''ORCL'' comment=
''Modified by RMAN duplicate'' scope=spfile";
shutdown clone immediate;
startup clone force nomount
backup as copy current controlfile auxiliary format '/u01/app/oracle/oradata/vvcoredb/control01.ctl';
restore clone controlfile to '/u01/app/oracle/recovery_area/vvcoredb/control02.ctl' from
'/u01/app/oracle/oradata/vvcoredb/control01.ctl';
alter clone database mount;
executing Memory Script
sql statement: alter system set db_name = ''VVCOREDB'' comment= ''Modified by RMAN duplicate'' scope=spfile
sql statement: alter system set db_unique_name = ''ORCL'' comment= ''Modified by RMAN duplicate'' scope=spfile
Oracle instance shut down
Oracle instance started
Total System Global Area 3307048960 bytes
Fixed Size 2217872 bytes
Variable Size 1811941488 bytes
Database Buffers 1476395008 bytes
Redo Buffers 16494592 bytes
Starting backup at 24-SEP-12
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
copying current control file
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/24/2012 18:42:09
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 09/24/2012 18:42:09
ORA-17628: Oracle error 19505 returned by remote Oracle server
I have a comment that source site doesn't have flash_recovery_area, instead it's name is recovery_area, is it problem?
Edited by: 788420 on Sep 24, 2012 4:44 AM -
"Segmentation fault" during tns rman active duplicate
Hello. I am trying to do an active duplicate using tns connectivity and just after restoring the controlfile the process fails with the error "Segmentation fault". However if I start the rman using Ezconnect everything goes smoothly. Restarting the databases did not help. What could be the reason? Here is the output with the error:
rman target sys/oracle@EN9 auxiliary sys/oracle@EN910
Recovery Manager: Release 11.2.0.3.0 - Production on Thu Jun 13 17:41:15 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: EN9 (DBID=529480944)
connected to auxiliary database: EN910 (not mounted)
RMAN> duplicate target database to EN910 from active database nofilenamecheck;
Starting Duplicate Db at 13-JUN-13
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=24 device type=DISK
contents of Memory Script:
sql clone "alter system set control_files =
''+DATA/en910/controlfile/current.271.818012497'' comment=
''Set by RMAN'' scope=spfile";
sql clone "alter system set db_name =
''EN9'' comment=
''Modified by RMAN duplicate'' scope=spfile";
sql clone "alter system set db_unique_name =
''EN910'' comment=
''Modified by RMAN duplicate'' scope=spfile";
shutdown clone immediate;
startup clone force nomount
backup as copy current controlfile auxiliary format '+DATA/en910/controlfile/current.275.818012497';
sql clone "alter system set control_files =
''+DATA/en910/controlfile/current.275.818012497'' comment=
''Set by RMAN'' scope=spfile";
shutdown clone immediate;
startup clone nomount;
alter clone database mount;
executing Memory Script
sql statement: alter system set control_files = ''+DATA/en910/controlfile/current.271.818012497'' comment= ''Set by RMAN'' scope=spfile
sql statement: alter system set db_name = ''EN9'' comment= ''Modified by RMAN duplicate'' scope=spfile
sql statement: alter system set db_unique_name = ''EN910'' comment= ''Modified by RMAN duplicate'' scope=spfile
Oracle instance shut down
Oracle instance started
Total System Global Area 242208768 bytes
Fixed Size 2227176 bytes
Variable Size 184550424 bytes
Database Buffers 50331648 bytes
Redo Buffers 5099520 bytes
Starting backup at 13-JUN-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=25 device type=DISK
channel ORA_DISK_1: starting datafile copy
copying current control file
Oracle instance started
Segmentation fault
tnsnames.ora of target db:
EN9 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ora9)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = EN9)
tnsnames.ora of aux db:
EN910 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ora10)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = EN910)
EN9 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ora9)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = EN9)
listener.ora of aux db:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME=EN910)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME=EN910)if you have access to MOS:
Rman Duplicate Fails With Segmentation Fault [ID 744717.1]
Rman Duplicate Failing With A Segmentation Fault [ID 1092423.1] -
Rman duplicate database from test to production different host
Dear All,
usually i do the rman duplicate (clone) database in different host using same backup location as the source database in target database.
now i am in situation to clone the database with different backup location
source database location:/u01/db/backup
target database location: /tmp_dbbkup
is it possible to create the duplicate database with the command
rman target sys@UAT1 auxiliary /
RMAN>CATALOG BACKUPPIECE '/tmp_dbbkup/UAT_2670198561_44_20110101;
RMAN>duplicate target database to DEV;
is it ok?
we dont have privilege/rights to create a folder/directory in production server.
what i have to do now?
thanks in advance.
my oracle version: 10.2.0.4.0
operating system: AIXtychos wrote:
Hi rajeysh,
what i have to do now?You could make a sym link on the dev server
So /u01/db/backup on the dev server points to /tmp_dbbkup
Regards,
Tychothank for your reply tychos,
$ ln -s /u01/db/backup/OUAT_2670198561_44_20110101 /oracle/db/backup/UAT_2670198561_44_20110101
$ ls -ltr
total 1475968
-rw-r----- 1 oracle dba 307654656 Jan 7 10:03 db_DEV_20110107_4em1gm3e_1_1_L0
-rw-r----- 1 oracle dba 448030720 Jan 7 10:03 db_DEV_20110107_4dm1gm3e_1_1_L0
lrwxrwxrwx 1 oracle dba 45 Jan 11 20:53 UAT_2670198561_44_20110101 -> /u01/db/backup/OUAT_2670198561_44_20110101
$ ln -s /u01/db/backup/AOUAT_2670198561_46_20110101 /oracle/db/backup/OUAT_2670198561_46_20110101
$ ln -s /u01/db/backup/OUAT_2670198561_47_20110101 /oracle/db/backup/OUAT_2670198561_47_20110101
$ ln -s /u01/db/backup/OUAT_2670198561_45_20110101 /oracle/db/backup/OUAT_2670198561_45_20110101
$
is it ok
will the duplicate gets the information from /oracle/db/backup
if i did anything wrong , please correct me? -
Duplicate from Active database
Hi,
I have RAC primary database running in 11.2.0.3 with linux 5(dc). We also have configured RAC cluster on DR site recently.Now we need to create stanby database on DR site.
For this is have following doubts
My database size is 6TB(from dba_segmnets) and total is 14TB(from dba_data_files)
1) How duplicate of active database works internally? Does it copy the exact file to standby site for example copy datafile(which is of 5GB in size) and send it over to standby over network?
2) Both primary and standby sites are in different states, so i was thinking to backup the primary database first to tapes and then courier tapes to dr site and then finally restore and recover standby.
I have doubts in above approaches which should i implement. I think active database duplication will skip a)backup time b) courier time. Is that correct?
However if my database size is 14TB and using 1st method, does it send files to dr worth of 14TB size?I am working on active database duplication and has below issue. Can any one help me on this?
RMAN> connect target sys@Pa305
connected to target database: PA305 (DBID=2787277616)
RMAN> connect auxiliary sys@Pb305
connected to auxiliary database: PB305 (not mounted)
RMAN> DUPLICATE TARGET DATABASE
TO 'PB305'
FROM ACTIVE DATABASE
2> 3> 4> ;
Starting Duplicate Db at 31-JUL-2012 17:20:07
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=2838 instance=PB3051 device type=DISK
contents of Memory Script:
sql clone "alter system set control_files =
''+DG_075_DATA01/PB305/controlfile/current.270.790104009'', ''+DG_075_FRA01/PB305/controlfile/current.286.790104009'' comment=
''Set by RMAN'' scope=spfile";
sql clone "alter system set db_name =
''PA305'' comment=
''Modified by RMAN duplicate'' scope=spfile";
sql clone "alter system set db_unique_name =
''PB305'' comment=
''Modified by RMAN duplicate'' scope=spfile";
shutdown clone immediate;
startup clone force nomount
backup as copy current controlfile auxiliary format '+DG_075_DATA01/PB305/controlfile/current.269.790104009';
restore clone controlfile to '+DG_075_FRA01/PB305/controlfile/current.288.790104009' from
'+DG_075_DATA01/PB305/controlfile/current.269.790104009';
sql clone "alter system set control_files =
''+DG_075_DATA01/PB305/controlfile/current.269.790104009'', ''+DG_075_FRA01/PB305/controlfile/current.288.790104009'' comment=
''Set by RMAN'' scope=spfile";
shutdown clone immediate;
startup clone nomount;
alter clone database mount;
executing Memory Script
sql statement: alter system set control_files = ''+DG_075_DATA01/PB305/controlfile/current.270.790104009'', ''+DG_075_FRA01/PB305/controlfile/current.286.790104009'' comment= ''Set by RMAN'' scope=spfile
sql statement: alter system set db_name = ''PA305'' comment= ''Modified by RMAN duplicate'' scope=spfile
sql statement: alter system set db_unique_name = ''PB305'' comment= ''Modified by RMAN duplicate'' scope=spfile
Oracle instance shut down
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 07/31/2012 17:20:18
RMAN-06174: not connected to auxiliary database
RMAN-03015: error occurred in stored script Memory Script
RMAN-04006: error from auxiliary database: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
RMAN> -
How to duplicate/clone treenode to another?
I have build treenode from Actice Directory OU structure to $treeNode1 variable. Now I want to clone it to $treeNode2 variable but I do not know how. Cloning is show-stopped right now.Hi,
I have to say that I am not so clear with what treenode you mean, would you please share your code here and explain more details?
Do you mean “New-Object Windows.Forms.TreeNode”? If so, then hope the below links be helpful:
Generate tree nodes in powershell on the fly
http://msdn.microsoft.com/en-us/library/system.windows.forms.treenode(v=vs.110).aspx
In additon, for scripting please also post in the official scripting guys forum and MSDN forum:
https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
Hope this helps.
TechNet Subscriber Support
If you are
TechNet Subscription
user and have any feedback on our support quality, please send your feedback
here.
Regards, Yan Li -
Is it possible to sandbox the entire system?
DISCLAIMER
This is partly just thinking out loud.
There may be some completely obvious solution for achieving this that I have not come across.
My ideas may be flawed.
I saw the other thread about sandboxing but that had a different focus and went in a different direction than this hopefully will.
First, by sandboxing I mean the following:
* let an application see the actual system, but only selectively, e.g. make /usr visible but /home inaccessible
* intercept all writes to the system
* let an application see all intercepted writes as though they have actually occurred
* intercept all network communication and allow the user to approve or deny it, e.g. enable a source download from one site but prevent the application from calling home to another
* the application cannot escape the sandbox
* the application should not be able to detect the sandbox
Is this possible?
First I thought about using FUSE to mask the entire filesystem but this would affect all applications and probably wouldn't work on a running sysem.
Then I thought about using virtualization. Maybe it would be possible to create a fake base image of the live host system and then add an overlay to that to create a sandboxed virtual clone of the host system. The network connection could probably by the host in that case.
I don't know if it would be at all possible though to create a fake base image of the live host system. I also don't know if it would need to be static or if the image could remain dynamic. In the latter case. it would probably be possible to create the image with FUSE. Using FUSE it might even be possible to forgo the overlay image as FUSE itself could intercept the writes. There are obvious complexities in that though, such as how to present changes to a file by the host to the guest if the guest has modified it previously. I also have no idea if the guest system could use a clone of the hosts file system.
Why I would want to do this:
* "Safely" test-run anything while protecting your system (hide your sensitive data, protect all of your files, control network access)**.
* Simplified package building: build the application as it's meant to be built in the sandbox, compare the sandbox to the host and then use the differences to build the package***.
* It would be cool.
** Before anyone interjects with the "only run trusted apps" mantra, this would also apply to trusted apps which might contain bugs. Let's face it, most people do not plough through source code of trusted apps before building/installing/running them.
*** This was prompted by my ongoing installation of SAGE which is built in the post-install function instead of the PKGBUILD itself due to the complexities of the build process. The general idea is to create a way in which all application that can be built can be packaged uniformly.Are you sure that you can change the permissions of symlinks themselves? I think I've tried to make files read-only via symlinks on a local server but ended up using bindfs because it wasn't possible. Even if you can, symlinking everything that might be necessary for a given environment would not be ideal, plus I don't think symlinks can be used across different filesystems.
If a real-life human can figure out if it's he/she is in a chroot and break out of it, then he/she can write a script to do the same. I want a sandbox that could run malicious code with no effect on the system (if that's possible). Also, I think if the chroot idea were truly feasible, makepkg would have been using it for years already to simply install packages in the chroot as you normally would and then package them. There would also be several sandbox applications that could run applications safely. So far I have yet to find any.
I admit that I haven't looked into using a chroot in detail though and of course I may have missed some application which creates such a setup. Right now I think using per-application namespaces with fuse seems the most promising but I won't know until I've finished implementing a test application. If it turns out that it's a dead end I'll take harder look at chroot but it really doesn't seem to be able to do what I want. -
Error when running ./netca after clone of oracle home
Hello,
Databas version : 11.1.0.7
OS version : RHEL 5.5
To clone oracle_home on the target system, followed the below steps.
1. Not ran adpreclone.pl on the source as i am doing only database oracle_home clone.
2. Sutdown database and listner of the source db, ziped oracle_home, moved it to target server.
3. Unzip the folder and ran the script clone.pl in the target system, clonning is successfull.
Now i need to configure connection using ./netca (not created database using dbca yet) getting below erros.
[orarman@devtest bin]$ ./netca
****DISPLAY environment variable not set!
Oracle Net Configuration Assistant is a GUI tool
which requires that DISPLAY specify a location
where GUI tools can display.
Set and export DISPLAY, then re-run.
So i have set display as
[orarman@devtest bin]$ export DISPLAY=192.168.1.6:0.0
If i run ./netca getting an below error
[orarman@devtest bin]$ xhost +
xhost: unable to open display "192.168.1.6:0.0"
and
xclock
Error: Can't open display: 192.168.1.6:0.0
[orarman@devtest bin]$ ./netca
Oracle Net Services Configuration:
java.lang.NullPointerException
at oracle.ewt.lwAWT.BufferedApplet.<init>(Unknown Source)
at oracle.net.ca.NetCA.<init>(Unknown Source)
at oracle.net.ca.NetCA.main(Unknown Source)
Oracle Net Services configuration failed. The exit code is -1
Please suggest..
Thanks ..
Edited by: 955685 on Sep 16, 2012 11:55 PMAre you using putty to connect to the server or you are directly login into the server
-
Clone DataSource - view video while transmitting - EXAMPLE no answer
Thanks to me and captfoss, I create this application for all who want to understand how to clone DataSource.
Use this on SERVER side
* @(#)AVTransmit3.java 1.2 01/03/13
* Copyright (c) 1999-2001 Sun Microsystems, Inc. All Rights Reserved.
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
* modify and redistribute this software in source and binary code form,
* provided that i) this copyright notice and license appear on all copies of
* the software; and ii) Licensee does not utilize the software in a manner
* which is disparaging to Sun.
* This software is provided "AS IS," without a warranty of any kind. ALL
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
* This software is not designed or intended for use in on-line control of
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
* the design, construction, operation or maintenance of any nuclear
* facility. Licensee represents and warrants that it will not use or
* redistribute the Software for such purposes.
import java.awt.*;
import java.io.*;
import java.net.InetAddress;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.media.*;
import javax.media.protocol.*;
import javax.media.protocol.DataSource;
import javax.media.format.*;
import javax.media.control.TrackControl;
import javax.media.control.QualityControl;
import javax.media.rtp.*;
import javax.media.rtp.rtcp.*;
public class AVTransmit3 {
// Input MediaLocator
// Can be a file or http or capture source
private MediaLocator locator;
private String ipAddress;
private int portBase;
private Processor processor = null;
private RTPManager rtpMgrs[];
private DataSource dataOutput = null;
private static boolean v = false;
private static DataSource ds = null;
private static DataSource clone;
private static DataSource cloned;
private String VFORMAT = "h263/rtp";
private String AFORMAT = "mpegaudio/rtp";
public AVTransmit3(MediaLocator locator,
String ipAddress,
String pb,
Format format) {
this.locator = locator;
this.ipAddress = ipAddress;
Integer integer = Integer.valueOf(pb);
if (integer != null)
this.portBase = integer.intValue();
* Starts the transmission. Returns null if transmission started ok.
* Otherwise it returns a string with the reason why the setup failed.
public synchronized String start() {
String result;
// Create a processor for the specified media locator
// and program it to output JPEG/RTP
result = createProcessor();
if (result != null)
return result;
// Create an RTP session to transmit the output of the
// processor to the specified IP address and port no.
result = createTransmitter();
if (result != null) {
processor.close();
processor = null;
return result;
// Start the transmission
processor.start();
return null;
* Stops the transmission if already started
public void stop() {
synchronized (this) {
if (processor != null) {
processor.stop();
processor.close();
processor = null;
for (int i = 0; i < rtpMgrs.length; i++) {
rtpMgrs.removeTargets( "Session ended.");
rtpMgrs[i].dispose();
private String createProcessor() {
if (locator == null)
return "Locator is null";
try {
ds = javax.media.Manager.createDataSource(locator);
} catch (Exception e) {
return "Couldn't create DataSource";
//----------------------------------------------------Start
if(v)
/* Get a clonable version of our datasource */
ds = Manager.createCloneableDataSource(ds);
/* Make sure we got a clonable version before we try to clone it */
if (ds == null) {
System.err.println("Cannot get a clonable version of the datasource");
System.exit(0);
/* Create the clone of our original datasource */
DataSource dsClone = ((SourceCloneable)ds).createClone();
/* Make sure the clone happened successfully */
if (dsClone == null) {
System.err.println("Could not clone our datasource");
System.exit(0);
/* Create a new Clone class */
Clone cloneV = new Clone();
/* Open our clone class with our datasource clone */
if (! cloneV.open(dsClone))
System.exit(0);
//----------------------------------------------------End
// Try to create a processor to handle the input media locator
try {
processor = javax.media.Manager.createProcessor(ds);
} catch (NoProcessorException npe) {
return "Couldn't create processor";
} catch (IOException ioe) {
return "IOException creating processor";
// Wait for it to configure
boolean result = waitForState(processor, Processor.Configured);
if (result == false)
return "Couldn't configure processor";
// Get the tracks from the processor
TrackControl [] tracks = processor.getTrackControls();
// Do we have atleast one track?
if (tracks == null || tracks.length < 1)
return "Couldn't find tracks in processor";
// Set the output content descriptor to RAW_RTP
// This will limit the supported formats reported from
// Track.getSupportedFormats to only valid RTP formats.
ContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW_RTP);
processor.setContentDescriptor(cd);
Format supported[];
Format chosen = null;
boolean atLeastOneTrack = false;
// Program the tracks.
for (int i = 0; i < tracks.length; i++)
AudioFormat aFormat = new AudioFormat(AFORMAT, 22050.00, 16, 1);
Format format = tracks[i].getFormat();
if (tracks[i].isEnabled())
supported = tracks[i].getSupportedFormats();
// We've set the output content to the RAW_RTP.
// So all the supported formats should work with RTP.
// We'll just pick the first one.
if (supported.length > 0)
for(int k = 0; k < supported.length; k++)
if ((supported[k] instanceof VideoFormat) &&
(supported[k].getEncoding().equalsIgnoreCase(VFORMAT)))
// For video formats, we should double check the
// sizes since not all formats work in all sizes.
// Choose the H263rtp
chosen = checkForVideoSizes(tracks[i].getFormat(), supported[k]);
v = true;
break;
else if ((supported[k] instanceof AudioFormat) &&
(supported[k].matches(aFormat)))
// For audio formats
// Choose the H263rtp
// chosen = supported[3];
chosen = supported[k];
v = false;
break;
tracks[i].setFormat(chosen);
System.err.println("Track " + i + " is set to transmit as:");
System.err.println(" " + chosen);
atLeastOneTrack = true;
} else
tracks[i].setEnabled(false);
} else
tracks[i].setEnabled(false);
if (!atLeastOneTrack)
return "Couldn't set any of the tracks to a valid RTP format";
// Realize the processor. This will internally create a flow
// graph and attempt to create an output datasource for JPEG/RTP
// audio frames.
result = waitForState(processor, Controller.Realized);
if (result == false)
return "Couldn't realize processor";
// Set the JPEG quality to .5.
setJPEGQuality(processor, 0.5f);
// Get the output data source of the processor
dataOutput = processor.getDataOutput();
return null;
* Use the RTPManager API to create sessions for each media
* track of the processor.
private String createTransmitter() {
// Cheated. Should have checked the type.
PushBufferDataSource pbds = (PushBufferDataSource)dataOutput;
PushBufferStream pbss[] = pbds.getStreams();
rtpMgrs = new RTPManager[pbss.length];
SendStream sendStream;
int port;
SourceDescription srcDesList[];
for (int i = 0; i < pbss.length; i++) {
try {
rtpMgrs[i] = RTPManager.newInstance();
port = portBase + 2*i;
// Initialize the RTPManager with the RTPSocketAdapter
rtpMgrs[i].initialize(new RTPSocketAdapter(
InetAddress.getByName(ipAddress),
port));
System.err.println( "Created RTP session: " + ipAddress + " " + port);
sendStream = rtpMgrs[i].createSendStream(dataOutput, i);
sendStream.start();
} catch (Exception e) {
return e.getMessage();
return null;
* For JPEG and H263, we know that they only work for particular
* sizes. So we'll perform extra checking here to make sure they
* are of the right sizes.
Format checkForVideoSizes(Format original, Format supported) {
int width, height;
Dimension size = ((VideoFormat)original).getSize();
Format jpegFmt = new Format(VideoFormat.JPEG_RTP);
Format h263Fmt = new Format(VideoFormat.H263_RTP);
if (supported.matches(jpegFmt)) {
// For JPEG, make sure width and height are divisible by 8.
width = (size.width % 8 == 0 ? size.width :
(int)(size.width / 8) * 8);
height = (size.height % 8 == 0 ? size.height :
(int)(size.height / 8) * 8);
} else if (supported.matches(h263Fmt)) {
// For H.263, we only support some specific sizes.
if (size.width < 128) {
width = 128;
height = 96;
} else if (size.width < 176) {
width = 176;
height = 144;
} else {
width = 352;
height = 288;
} else {
// We don't know this particular format. We'll just
// leave it alone then.
return supported;
return (new VideoFormat(null,
new Dimension(width, height),
Format.NOT_SPECIFIED,
null,
Format.NOT_SPECIFIED)).intersects(supported);
* Setting the encoding quality to the specified value on the JPEG encoder.
* 0.5 is a good default.
void setJPEGQuality(Player p, float val) {
Control cs[] = p.getControls();
QualityControl qc = null;
VideoFormat jpegFmt = new VideoFormat(VideoFormat.JPEG);
// Loop through the controls to find the Quality control for
// the JPEG encoder.
for (int i = 0; i < cs.length; i++) {
if (cs[i] instanceof QualityControl &&
cs[i] instanceof Owned) {
Object owner = ((Owned)cs[i]).getOwner();
// Check to see if the owner is a Codec.
// Then check for the output format.
if (owner instanceof Codec) {
Format fmts[] = ((Codec)owner).getSupportedOutputFormats(null);
for (int j = 0; j < fmts.length; j++) {
if (fmts[j].matches(jpegFmt)) {
qc = (QualityControl)cs[i];
qc.setQuality(val);
System.err.println("- Setting quality to " +
val + " on " + qc);
break;
if (qc != null)
break;
* Convenience methods to handle processor's state changes.
private Integer stateLock = new Integer(0);
private boolean failed = false;
Integer getStateLock() {
return stateLock;
void setFailed() {
failed = true;
private synchronized boolean waitForState(Processor p, int state) {
p.addControllerListener(new StateListener());
failed = false;
// Call the required method on the processor
if (state == Processor.Configured) {
p.configure();
} else if (state == Processor.Realized) {
p.realize();
// Wait until we get an event that confirms the
// success of the method, or a failure event.
// See StateListener inner class
while (p.getState() < state && !failed) {
synchronized (getStateLock()) {
try {
getStateLock().wait();
} catch (InterruptedException ie) {
return false;
if (failed)
return false;
else
return true;
* Inner Classes
class StateListener implements ControllerListener {
public void controllerUpdate(ControllerEvent ce) {
// If there was an error during configure or
// realize, the processor will be closed
if (ce instanceof ControllerClosedEvent)
setFailed();
// All controller events, send a notification
// to the waiting thread in waitForState method.
if (ce instanceof ControllerEvent) {
synchronized (getStateLock()) {
getStateLock().notifyAll();
* Sample Usage for AVTransmit3 class
public static void main(String [] args) {
// We need three parameters to do the transmission
// For example,
// java AVTransmit3 file:/C:/media/test.mov 129.130.131.132 42050
Format fmt = null;
int i = 0;
String title = "Video";
// Create a audio transmit object with the specified params.
AVTransmit3 at = new AVTransmit3(new MediaLocator("vfw://0"),
"192.168.0.3", "12345", fmt);
//View GUI
JFrameMain jfm = new JFrameMain(at);
jfm.setVisible(true);
jfm.setTitle(title);
if(title.equals("Video"))
jfm.setLocation(jfm.getX()+180, jfm.getY());
v = true;
// Start the transmission
String result = at.start();
// result will be non-null if there was an error. The return
// value is a String describing the possible error. Print it.
if (result != null) {
System.err.println("Error : " + result);
System.exit(0);
System.err.println("Start transmission...");
try {
Thread.sleep(2000);
} catch (InterruptedException ex) {
Logger.getLogger(AVTransmit3.class.getName()).log(Level.SEVERE, null, ex);
/* Clone.java
* To change this template, choose Tools | Templates
* and open the template in the editor.
import java.awt.*;
import javax.media.*;
import javax.media.protocol.DataSource;
public class Clone extends Frame implements ControllerListener {
Player p;
Object waitSync = new Object();
boolean stateTransitionOK = true;
* Given a DataSource, create a player and use that player
* as a player to playback the media.
public boolean open(DataSource ds) {
System.err.println("create player for: " + ds.getContentType());
try {
p = Manager.createPlayer(ds);
} catch (Exception e) {
System.err.println("Failed to create a player from the given DataSource: " + e);
return false;
p.addControllerListener(this);
// Realize the player.
p.prefetch();
if (!waitForState(p.Prefetched)) {
System.err.println("Failed to realize the player.");
return false;
// Display the visual & control component if there's one.
setLayout(new BorderLayout());
// Component cc;
Component vc;
if ((vc = p.getVisualComponent()) != null) {
add("Center", vc);
// if ((cc = p.getControlPanelComponent()) != null) {
// add("South", cc);
// Start the player.
p.start();
setVisible(true);
return true;
public void addNotify() {
super.addNotify();
pack();
* Block until the player has transitioned to the given state.
* Return false if the transition failed.
boolean waitForState(int state) {
synchronized (waitSync) {
try {
while (p.getState() < state && stateTransitionOK)
waitSync.wait();
} catch (Exception e) {}
return stateTransitionOK;
* Controller Listener.
public void controllerUpdate(ControllerEvent evt) {
if (evt instanceof ConfigureCompleteEvent ||
evt instanceof RealizeCompleteEvent ||
evt instanceof PrefetchCompleteEvent) {
synchronized (waitSync) {
stateTransitionOK = true;
waitSync.notifyAll();
} else if (evt instanceof ResourceUnavailableEvent) {
synchronized (waitSync) {
stateTransitionOK = false;
waitSync.notifyAll();
} else if (evt instanceof EndOfMediaEvent) {
p.close();
//System.exit(0);
} else if (evt instanceof SizeChangeEvent) {
* @(#)RTPSocketAdapter.java 1.2 01/03/13
* Copyright (c) 1999-2001 Sun Microsystems, Inc. All Rights Reserved.
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
* modify and redistribute this software in source and binary code form,
* provided that i) this copyright notice and license appear on all copies of
* the software; and ii) Licensee does not utilize the software in a manner
* which is disparaging to Sun.
* This software is provided "AS IS," without a warranty of any kind. ALL
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
* This software is not designed or intended for use in on-line control of
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
* the design, construction, operation or maintenance of any nuclear
* facility. Licensee represents and warrants that it will not use or
* redistribute the Software for such purposes.
import java.io.IOException;
import java.net.InetAddress;
import java.net.DatagramSocket;
import java.net.MulticastSocket;
import java.net.DatagramPacket;
import java.net.SocketException;
import javax.media.protocol.DataSource;
import javax.media.protocol.PushSourceStream;
import javax.media.protocol.ContentDescriptor;
import javax.media.protocol.SourceTransferHandler;
import javax.media.rtp.RTPConnector;
import javax.media.rtp.OutputDataStream;
* An implementation of RTPConnector based on UDP sockets.
public class RTPSocketAdapter implements RTPConnector {
DatagramSocket dataSock;
DatagramSocket ctrlSock;
InetAddress addr;
int port;
SockInputStream dataInStrm = null, ctrlInStrm = null;
SockOutputStream dataOutStrm = null, ctrlOutStrm = null;
public RTPSocketAdapter(InetAddress addr, int port) throws IOException {
this(addr, port, 1);
public RTPSocketAdapter(InetAddress addr, int port, int ttl) throws IOException {
try {
if (addr.isMulticastAddress()) {
dataSock = new MulticastSocket(port);
ctrlSock = new MulticastSocket(port+1);
((MulticastSocket)dataSock).joinGroup(addr);
((MulticastSocket)dataSock).setTimeToLive(ttl);
((MulticastSocket)ctrlSock).joinGroup(addr);
((MulticastSocket)ctrlSock).setTimeToLive(ttl);
} else {
dataSock = new DatagramSocket(port, InetAddress.getLocalHost());
ctrlSock = new DatagramSocket(port+1, InetAddress.getLocalHost());
} catch (SocketException e) {
throw new IOException(e.getMessage());
this.addr = addr;
this.port = port;
* Returns an input stream to receive the RTP data.
public PushSourceStream getDataInputStream() throws IOException {
if (dataInStrm == null) {
dataInStrm = new SockInputStream(dataSock, addr, port);
dataInStrm.start();
return dataInStrm;
* Returns an output stream to send the RTP data.
public OutputDataStream getDataOutputStream() throws IOException {
if (dataOutStrm == null)
dataOutStrm = new SockOutputStream(dataSock, addr, port);
return dataOutStrm;
* Returns an input stream to receive the RTCP data.
public PushSourceStream getControlInputStream() throws IOException {
if (ctrlInStrm == null) {
ctrlInStrm = new SockInputStream(ctrlSock, addr, port+1);
ctrlInStrm.start();
return ctrlInStrm;
* Returns an output stream to send the RTCP data.
public OutputDataStream getControlOutputStream() throws IOException {
if (ctrlOutStrm == null)
ctrlOutStrm = new SockOutputStream(ctrlSock, addr, port+1);
return ctrlOutStrm;
* Close all the RTP, RTCP streams.
public void close() {
if (dataInStrm != null)
dataInStrm.kill();
if (ctrlInStrm != null)
ctrlInStrm.kill();
dataSock.close();
ctrlSock.close();
* Set the receive buffer size of the RTP data channel.
* This is only a hint to the implementation. The actual implementation
* may not be able to do anything to this.
public void setReceiveBufferSize( int size) throws IOException {
dataSock.setReceiveBufferSize(size);
* Get the receive buffer size set on the RTP data channel.
* Return -1 if the receive buffer size is not applicable for
* the implementation.
public int getReceiveBufferSize() {
try {
return dataSock.getReceiveBufferSize();
} catch (Exception e) {
return -1;
* Set the send buffer size of the RTP data channel.
* This is only a hint to the implementation. The actual implementation
* may not be able to do anything to this.
public void setSendBufferSize( int size) throws IOException {
dataSock.setSendBufferSize(size);
* Get the send buffer size set on the RTP data channel.
* Return -1 if the send buffer size is not applicable for
* the implementation.
public int getSendBufferSize() {
try {
return dataSock.getSendBufferSize();
} catch (Exception e) {
return -1;
* Return the RTCP bandwidth fraction. This value is used to
* initialize the RTPManager. Check RTPManager for more detauls.
* Return -1 to use the default values.
public double getRTCPBandwidthFraction() {
return -1;
* Return the RTCP sender bandwidth fraction. This value is used to
* initialize the RTPManager. Check RTPManager for more detauls.
* Return -1 to use the default values.
public double getRTCPSenderBandwidthFraction() {
return -1;
* An inner class to implement an OutputDataStream based on UDP sockets.
class SockOutputStream implements OutputDataStream {
DatagramSocket sock;
InetAddress addr;
int port;
public SockOutputStream(DatagramSocket sock, InetAddress addr, int port) {
this.sock = sock;
this.addr = addr;
this.port = port;
public int write(byte data[], int offset, int len) {
try {
sock.send(new DatagramPacket(data, offset, len, addr, port));
} catch (Exception e) {
return -1;
return len;
* An inner class to implement an PushSourceStream based on UDP sockets.
class SockInputStream extends Thread implements PushSourceStream {
DatagramSocket sock;
InetAddress addr;
int port;
boolean done = false;
boolean dataRead = false;
SourceTransferHandler sth = null;
public SockInputStream(DatagramSocket sock, InetAddress addr, int port) {
this.sock = sock;
this.addr = addr;
this.port = port;
public int read(byte buffer[], int offset, int length) {
DatagramPacket p = new DatagramPacket(buffer, offset, length, addr, port);
try {
sock.receive(p);
} catch (IOException e) {
return -1;
synchronized (this) {
dataRead = true;
notify();
return p.getLength();
public synchronized void start() {
super.start();
if (sth != null) {
dataRead = true;
notify();
public synchronized void kill() {
done = true;
notify();
public int getMinimumTransferSize() {
return 2 * 1024; // twice the MTU size, just to be safe.
public synchronized void setTransferHandler(SourceTransferHandler sth) {
this.sth = sth;
dataRead = true;
notify();
// Not applicable.
public ContentDescriptor getContentDescriptor() {
return null;
// Not applicable.
public long getContentLength() {
return LENGTH_UNKNOWN;
// Not applicable.
public boolean endOfStream() {
return false;
// Not applicable.
public Object[] getControls() {
return new Object[0];
// Not applicable.
public Object getControl(String type) {
return null;
* Loop and notify the transfer handler of new data.
public void run() {
while (!done) {
synchronized (this) {
while (!dataRead && !done) {
try {
wait();
} catch (InterruptedException e) { }
dataRead = false;
if (sth != null && !done) {
sth.transferData(this);
* JFrameMain.java
* @author Giovanni
public class JFrameMain extends javax.swing.JFrame {
/** Creates new form JFrameMain */
public JFrameMain(AVTransmit3 avt) {
avTransmit = avt;
initComponents();
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
jButtonFine = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setResizable(false);
jButtonFine.setText("Fine Trasmissione");
jButtonFine.addMouseListener(new java.awt.event.MouseAdapter() {
public void mousePressed(java.awt.event.MouseEvent evt) {
jButtonFineMousePressed(evt);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jButtonFine, javax.swing.GroupLayout.DEFAULT_SIZE, 124, Short.MAX_VALUE)
.addContainerGap())
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jButtonFine, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE)
.addContainerGap())
setBounds(600, 110, 160, 90);
}// </editor-fold>
private void jButtonFineMousePressed(java.awt.event.MouseEvent evt) {
avTransmit.stop();
System.exit(0);
* @param args the command line arguments
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
// new JFrameMain().setVisible(true);
// Variables declaration - do not modify
private javax.swing.JButton jButtonFine;
// End of variables declaration
private AVTransmit3 avTransmit = null;
It's shake and bake, and I helped...
-
Duplicate Check while creating new BP
Dears,
I am a CRM Consultant and working on a CRM VMS integration scenario, wherein BP(End customer) is created in VMS system and this will be replicated to SAP CRM system which has duplicate check active. However we would like to perform the duplicate check within VMS System, so that it checks against existing BP records in BUT000 of VMS System.
Can you share your experience in performing the same?
Cheers
SwetaThanks Ritesh/Ganesh.
Yes i understand that we can make certain fields which needs to be validated/checked during customer/bp creation process.
Example:
Customer 1 : Already exists in VMS DB.
First Name: Steve
Last name: Jobs
Mobile: 868686
Email:[email protected]
BP ID/Customer No : 100
Customer 2: Being created by user in VMS DB
First name: Steve
Last name: jobs
Mobile: 868686
Email: [email protected]
Based upon tolerance set by business, system will display a pop up with duplicate message....
User can ignore the message and continue creating new customer/bp record or user can make use of BP/customer 100......
This is how duplicate check works in the CRM System....
Note: when system tries to find the potential duplicate , it is not actually checking in CRM DB, but in TREX.....
So can we achieve similar functionality in SAP VMS System ? if yes....can you please provide config steps or any BADI or user exit ..etc.....
Hope i am clear...
Thanks again for your suggestions.
Best Regards
Sweta
Maybe you are looking for
-
PO with status "Deleted" in SRM and status "Awaiting Approval" in BW
Hi, Report Purchase Order status ( 0BBP_PO_Q007) on ODS 0BBP_PO shows status "Awaiting Approval" for Purchase Orders that have status "Deleted" in the SRM source system. Any idea about an appropriate OSS note or other work around solution? Thanks in
-
SAP / ABAP Query - using logical database
Hi , We have a mandate to implement SAP Query using only Logical Databases (LDB ) . We understand that there are several issues using this approach . 1 ) Paralled tables in MM need to be displayed on separate lines . 2 ) Statistics based on fields fr
-
F4 search is having an issue in IDES
Hi, There is no documentation available when i am pressing on F4 button. Please try to some body help me. Thanks, RAMANA
-
IMovie 8 (version 7.1 (506) just installed - lost audio on import
There I was happily importing our video podcasts (.m4v files) and editing them down to 3 min previews (you can see them on pod3tv account in youtube) and I updated iMovie to iMovie 8 (version 7.1 (506) along with all the iLife apps - a monster upgrad
-
Anyone know how much bandwidth call setup/tear down takes up? I am planning to reccomend all offices under 400 users be part of a centralized CallManager cluster. Therefore I am trying to find out how much bandwidth to allot for in regards to "Call P