Db2 command for create tablespaces of DB2 V9.1.3
Dear All,
Currently, Ive run prepare for upgrade SAP form 4.6C/DB2 9.1.3 to ECC6.
But, I dont know to db2 command for create tablespaces as below.
Could you please example the DB2 command for create tablespaces as below.
ERROR> Insufficient free space in the database as follows:
Please refer to file DBFPLUSD.RES for more details and dditional information about the results of the free space check on DB6 !!!
ERROR> Create tablespace PSAPDIMD with 120 MB
ERROR> Create tablespace PSAPDIMI with 120 MB
ERROR> Create tablespace PSAPODSD with 130 MB
ERROR> Create tablespace PSAPODSI with 130 MB
ERROR> Create tablespace PSAPFACTD with 120 MB
ERROR> Create tablespace PSAPFACTI with 120 MB
ERROR> Create tablespace PSAPEL700D with 420 MB
ERROR> Create tablespace PSAPEL700I with 220 MB
ERROR> Create tablespace PSAPES700D with 21290 MB
ERROR> Create tablespace PSAPES700I with 5420 MB
Thanks in advance
Regards,
Jaturong P.
Hi,
During the PREPARE phase normally it creates a script which you can run for the creation of these Tablespaces,this script can be found in the Upgrade directory(eg:/usr/sap/put/log/DB6TBSXT.CLP - this script will have the command to create the tablespaces).Just run this script,it will create all the tablespaces based on the requirement.
Regards,
Sam
Edited by: Cheriyan Sam on Apr 22, 2008 9:12 AM
Similar Messages
-
Error During Installation: ORA-02180: invalid option for CREATE TABLESPACE
Hi all,
This is our enviroment,
Windows 2000 Service Pack 4
We are installing SAP R/3 Enterprise 4.7 Ext. 200 SR1
First we installed:
Oracle: 9.2
Patch: 9.2.0.7
SAP Central Instance
Now we are installing the DB Instance, but it gives this error:
INFO 2007-11-22 16:58:20
Working directory changed to C:\Program Files\sapinst_instdir\R3E47X2\SYSTEM\ABAP\ORA\NUC\DB.
ERROR 2007-11-22 16:58:21
CJS-00084 SQL statement or script failed.DIAGNOSIS: Error message: ORA-02180: invalid option for CREATE TABLESPACE
We are in the step 19 of 34
Create Tablespaces
Please some tips.
Regards,
ErickHi! Thanks a lot for the reply.
This is our <b>ora_sql_results.log</b>
================================================================================
2007-11-23, 07:31:09 SAPINST ORACLE start logging for
connect / as sysdba ;
set newpage 0
set space 0
set pagesize 0
set linesize 32767
set markup HTML off
set heading off
set verify off
set feedback off
set trimspool on
set sqlprompt SQL>
set termout on
set verify off
set echo off
spool ora_query3_tmp0_1.res
SELECT STATUS FROM V$INSTANCE;
spool off
exit;
Output of SQL executing program:
SQL*Plus: Release 9.2.0.7.0 - Production on Fri Nov 23 07:31:09 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected.
OPEN
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production
SAPINST: End of output of SQL executing program D:\oracle\TVD\920/bin/sqlplus.
2007-11-23, 07:31:10 SAPINST ORACLE stop logging
================================================================================
2007-11-23, 07:31:10 SAPINST ORACLE start logging for
connect / as sysdba ;
CREATE TABLESPACE PSAP@SCHEMAID@ DATAFILE 'E:\oracle\TVD\sapdata4\psap@schemaid@_1\psap@[email protected]' SIZE 2000M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO ;
exit;
Output of SQL executing program:
SQL*Plus: Release 9.2.0.7.0 - Production on Fri Nov 23 07:31:10 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected.
CREATE TABLESPACE PSAP@SCHEMAID@ DATAFILE 'E:\oracle\TVD\sapdata4\psap@schemaid@_1\psap@[email protected]' SIZE 2000M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO
ERROR at line 1:
ORA-02180: invalid option for CREATE TABLESPACE
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production
SAPINST: End of output of SQL executing program D:\oracle\TVD\920/bin/sqlplus.
SAPINST found errors.
SAPINST The current process environment may be found in sapinst_ora_environment.log.
2007-11-23, 07:31:10 SAPINST ORACLE stop logging
And this is <b>our alert_SID.log</b>
Dump file d:\oracle\tvd\saptrace\background\alert_tvd.log
Thu Nov 22 16:27:45 2007
ORACLE V9.2.0.7.0 - Production vsnsta=0
vsnsql=12 vsnxtr=3
Windows 2000 Version 5.0 Service Pack 4, CPU type 586
Thu Nov 22 16:27:45 2007
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
SCN scheme 2
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up ORACLE RDBMS Version: 9.2.0.7.0.
System parameters with non-default values:
processes = 80
sessions = 96
shared_pool_size = 251658240
sga_max_size = 546906620
shared_pool_reserved_size= 24363663
enqueue_resources = 8000
control_files = E:\oracle\TVD\origlogA\cntrl\cntrlTVD.dbf, E:\oracle\TVD\sapdata1\system_1\cntrl\cntrlTVD.dbf, D:\oracle\TVD\saparch\cntrl\cntrlTVD.dbf
db_block_size = 8192
db_cache_size = 251658240
compatible = 9.2.0
log_archive_start = TRUE
log_archive_dest = D:\oracle\TVD\oraarch\TVDarch
log_buffer = 1048576
log_checkpoint_interval = 0
db_files = 254
fast_start_mttr_target = 900
log_checkpoints_to_alert = TRUE
control_file_record_keep_time= 30
dml_locks = 4000
transaction_auditing = FALSE
undo_management = AUTO
undo_tablespace = PSAPUNDO
undo_retention = 43200
remote_os_authent = TRUE
hash_join_enabled = FALSE
background_dump_dest = D:\oracle\TVD\saptrace\background
user_dump_dest = D:\oracle\TVD\saptrace\usertrace
core_dump_dest = D:\oracle\TVD\saptrace\background
optimizer_features_enable= 9.2.0
sort_area_size = 2097152
sort_area_retained_size = 0
db_name = TVD
open_cursors = 800
pga_aggregate_target = 324848844
workarea_size_policy = AUTO
statistics_level = typical
PMON started with pid=2
DBW0 started with pid=3
LGWR started with pid=4
CKPT started with pid=5
SMON started with pid=6
RECO started with pid=7
Thu Nov 22 16:27:48 2007
ARCH: STARTING ARCH PROCESSES
ARC0 started with pid=8
ARC1 started with pid=9
Thu Nov 22 16:27:48 2007
ARC0: Archival started
Thu Nov 22 16:27:48 2007
ARCH: STARTING ARCH PROCESSES COMPLETE
Thu Nov 22 16:27:48 2007
ARC1: Archival started
Thu Nov 22 16:27:48 2007
ARC0: Becoming the 'no FAL' ARCH
Thu Nov 22 16:27:48 2007
ARC1: Becoming the heartbeat ARCH
Thu Nov 22 16:27:48 2007
ARC0: Becoming the 'no FAL' ARCHARC0: Thread not mounted
Thu Nov 22 16:27:48 2007
ARC1: Becoming the heartbeat ARCHARC1: Thread not mounted
Thu Nov 22 16:27:49 2007
alter database mount exclusive
Thu Nov 22 16:27:49 2007
ORA-00202: controlfile: 'E:\oracle\TVD\origlogA\cntrl\cntrlTVD.dbf'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
Thu Nov 22 16:27:50 2007
ORA-205 signalled during: alter database mount exclusive...
Shutting down instance (abort)
License high water mark = 1
Instance terminated by USER, pid = 1768
Thu Nov 22 16:28:05 2007
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
SCN scheme 2
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up ORACLE RDBMS Version: 9.2.0.7.0.
System parameters with non-default values:
processes = 80
sessions = 96
shared_pool_size = 251658240
sga_max_size = 546906620
shared_pool_reserved_size= 24363663
enqueue_resources = 8000
control_files = E:\oracle\TVD\origlogA\cntrl\cntrlTVD.dbf, E:\oracle\TVD\sapdata1\system_1\cntrl\cntrlTVD.dbf, D:\oracle\TVD\saparch\cntrl\cntrlTVD.dbf
db_block_size = 8192
db_cache_size = 251658240
compatible = 9.2.0
log_archive_start = TRUE
log_archive_dest = D:\oracle\TVD\oraarch\TVDarch
log_buffer = 1048576
log_checkpoint_interval = 0
db_files = 254
fast_start_mttr_target = 900
log_checkpoints_to_alert = TRUE
control_file_record_keep_time= 30
dml_locks = 4000
transaction_auditing = FALSE
undo_management = AUTO
undo_tablespace = PSAPUNDO
undo_retention = 43200
remote_os_authent = TRUE
hash_join_enabled = FALSE
background_dump_dest = D:\oracle\TVD\saptrace\background
user_dump_dest = D:\oracle\TVD\saptrace\usertrace
core_dump_dest = D:\oracle\TVD\saptrace\background
optimizer_features_enable= 9.2.0
sort_area_size = 2097152
sort_area_retained_size = 0
db_name = TVD
open_cursors = 800
pga_aggregate_target = 324848844
workarea_size_policy = AUTO
statistics_level = typical
PMON started with pid=2
DBW0 started with pid=3
LGWR started with pid=4
CKPT started with pid=5
SMON started with pid=6
RECO started with pid=7
Thu Nov 22 16:28:08 2007
ARCH: STARTING ARCH PROCESSES
ARC0 started with pid=8
ARC0: Archival started
ARC1 started with pid=9
Thu Nov 22 16:28:08 2007
ARCH: STARTING ARCH PROCESSES COMPLETE
Thu Nov 22 16:28:08 2007
ARC0: Becoming the 'no FAL' ARCH
ARC0: Becoming the 'no FAL' ARCHARC0: Thread not mounted
Thu Nov 22 16:28:09 2007
ARC1: Archival started
Thu Nov 22 16:28:09 2007
ARC1: Becoming the heartbeat ARCH
ARC1: Becoming the heartbeat ARCHARC1: Thread not mounted
Thu Nov 22 16:28:11 2007
CREATE DATABASE TVD CONTROLFILE REUSE MAXLOGFILES 255 MAXLOGMEMBERS 3 MAXLOGHISTORY 1000 MAXDATAFILES 254 MAXINSTANCES 50 NOARCHIVELOG CHARACTER SET WE8DEC NATIONAL CHARACTER SET UTF8 DATAFILE 'E:\oracle\TVD\sapdata1\system_1\system.data1' SIZE 550M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M EXTENT MANAGEMENT LOCAL DEFAULT TEMPORARY TABLESPACE PSAPTEMP TEMPFILE 'E:\oracle\TVD\sapdata3\temp_1\temp.data1' SIZE 540M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M UNDO TABLESPACE PSAPUNDO DATAFILE 'E:\oracle\TVD\sapdata2\undo_1\undo.data1' SIZE 700M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M
LOGFILE GROUP 1 ('E:
oracle/TVD/origlogA/log_g11m1.dbf',
'D:
oracle/TVD/mirrlogA/log_g11m2.dbf') SIZE 50M REUSE ,
GROUP 2 ('E:
oracle/TVD/origlogB/log_g12m1.dbf',
'D:
oracle/TVD/mirrlogB/log_g12m2.dbf') SIZE 50M REUSE ,
GROUP 3 ('E:
oracle/TVD/origlogA/log_g13m1.dbf',
'D:
oracle/TVD/mirrlogA/log_g13m2.dbf') SIZE 50M REUSE ,
GROUP 4 ('E:
oracle/TVD/origlogB/log_g14m1.dbf',
'D:
oracle/TVD/mirrlogB/log_g14m2.dbf') SIZE 50M REUSE
Thu Nov 22 16:28:12 2007
Database mounted in Exclusive Mode.
Thu Nov 22 16:28:29 2007
Successful mount of redo thread 1, with mount id 1434613531
Assigning activation ID 1434613531 (0x5582771b)
Thread 1 opened at log sequence 1
Thu Nov 22 16:28:30 2007
ARC1: Media recovery disabled
Thu Nov 22 16:28:31 2007
Current log# 1 seq# 1 mem# 0: E:\ORACLE\TVD\ORIGLOGA\LOG_G11M1.DBF
Current log# 1 seq# 1 mem# 1: D:\ORACLE\TVD\MIRRLOGA\LOG_G11M2.DBF
Successful open of redo thread 1
Thu Nov 22 16:28:31 2007
ARC0: Media recovery disabled
Thu Nov 22 16:28:31 2007
SMON: enabling cache recovery
Thu Nov 22 16:28:32 2007
WARNING: Default passwords for SYS and SYSTEM will be used.
Please change the passwords.
Thu Nov 22 16:28:32 2007
create tablespace SYSTEM datafile 'E:\oracle\TVD\sapdata1\system_1\system.data1' SIZE 550M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M
EXTENT MANAGEMENT LOCAL online
Thu Nov 22 16:28:51 2007
Completed: create tablespace SYSTEM datafile 'E:\oracle\TVD\
Thu Nov 22 16:28:51 2007
create rollback segment SYSTEM tablespace SYSTEM
storage (initial 50K next 50K)
Completed: create rollback segment SYSTEM tablespace SYSTEM
Thu Nov 22 16:29:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:29:10 2007
CREATE UNDO TABLESPACE PSAPUNDO DATAFILE 'E:\oracle\TVD\sapdata2\undo_1\undo.data1' SIZE 700M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M
Thu Nov 22 16:29:35 2007
Successfully onlined Undo Tablespace 1.
Completed: CREATE UNDO TABLESPACE PSAPUNDO DATAFILE 'E:\orac
Thu Nov 22 16:29:36 2007
CREATE TEMPORARY TABLESPACE PSAPTEMP TEMPFILE 'E:\oracle\TVD\sapdata3\temp_1\temp.data1' SIZE 540M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M
Completed: CREATE TEMPORARY TABLESPACE PSAPTEMP TEMPFILE 'E:
Thu Nov 22 16:29:36 2007
ALTER DATABASE DEFAULT TEMPORARY TABLESPACE PSAPTEMP
Completed: ALTER DATABASE DEFAULT TEMPORARY TABLESPACE PSAPTE
Thu Nov 22 16:29:39 2007
SMON: enabling tx recovery
Thu Nov 22 16:29:39 2007
Beginning local checkpoint up to RBA [0x1.538b.10], SCN: 0x0000.000019d9
Completed checkpoint up to RBA [0x1.538b.10], SCN: 0x0000.000019d9
kwqplbsc: open notifier exception err 604
replication_dependency_tracking turned off (no async multimaster replication found)
Completed: CREATE DATABASE TVD CONTROLFILE REUSE MAXLOGFILES
Thu Nov 22 16:30:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:31:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:31:28 2007
Beginning log switch checkpoint up to RBA [0x2.2.10], SCN: 0x0000.00006489
Thread 1 advanced to log sequence 2
Thu Nov 22 16:31:28 2007
ARC1: Media recovery disabled
Thu Nov 22 16:31:29 2007
Current log# 2 seq# 2 mem# 0: E:\ORACLE\TVD\ORIGLOGB\LOG_G12M1.DBF
Current log# 2 seq# 2 mem# 1: D:\ORACLE\TVD\MIRRLOGB\LOG_G12M2.DBF
Thu Nov 22 16:32:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:33:08 2007
ARC0: Media recovery disabled
Thu Nov 22 16:33:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:33:16 2007
Completed checkpoint up to RBA [0x2.2.10], SCN: 0x0000.00006489
Thu Nov 22 16:33:26 2007
Beginning log switch checkpoint up to RBA [0x3.2.10], SCN: 0x0000.00009227
Thread 1 advanced to log sequence 3
Thu Nov 22 16:33:26 2007
ARC0: Media recovery disabled
Thu Nov 22 16:33:26 2007
Current log# 3 seq# 3 mem# 0: E:\ORACLE\TVD\ORIGLOGA\LOG_G13M1.DBF
Current log# 3 seq# 3 mem# 1: D:\ORACLE\TVD\MIRRLOGA\LOG_G13M2.DBF
Thu Nov 22 16:34:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:35:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:35:19 2007
Completed checkpoint up to RBA [0x3.2.10], SCN: 0x0000.00009227
Thu Nov 22 16:35:28 2007
Beginning log switch checkpoint up to RBA [0x4.2.10], SCN: 0x0000.0000b0ac
Thread 1 advanced to log sequence 4
Current log# 4 seq# 4 mem# 0: E:\ORACLE\TVD\ORIGLOGB\LOG_G14M1.DBF
Thu Nov 22 16:35:28 2007
ARC1: Media recovery disabled
Thu Nov 22 16:35:28 2007
Current log# 4 seq# 4 mem# 1: D:\ORACLE\TVD\MIRRLOGB\LOG_G14M2.DBF
Thu Nov 22 16:36:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:37:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:38:08 2007
ARC0: Media recovery disabled
Thu Nov 22 16:38:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:38:51 2007
Completed checkpoint up to RBA [0x4.2.10], SCN: 0x0000.0000b0ac
Thu Nov 22 16:38:59 2007
Beginning log switch checkpoint up to RBA [0x5.2.10], SCN: 0x0000.0000e12b
Thread 1 advanced to log sequence 5
Thu Nov 22 16:38:59 2007
Current log# 1 seq# 5 mem# 0: E:\ORACLE\TVD\ORIGLOGA\LOG_G11M1.DBF
Current log# 1 seq# 5 mem# 1: D:\ORACLE\TVD\MIRRLOGA\LOG_G11M2.DBF
Thu Nov 22 16:39:00 2007
ARC0: Media recovery disabled
Thu Nov 22 16:39:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:40:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:41:08 2007
ARC1: Media recovery disabled
Thu Nov 22 16:41:09 2007
Completed checkpoint up to RBA [0x5.2.10], SCN: 0x0000.0000e12b
Thu Nov 22 16:41:18 2007
Beginning log switch checkpoint up to RBA [0x6.2.10], SCN: 0x0000.0000ee94
Thread 1 advanced to log sequence 6
Current log# 2 seq# 6 mem# 0: E:\ORACLE\TVD\ORIGLOGB\LOG_G12M1.DBF
Current log# 2 seq# 6 mem# 1: D:\ORACLE\TVD\MIRRLOGB\LOG_G12M2.DBF
Thu Nov 22 16:41:18 2007
ARC1: Media recovery disabled
Thu Nov 22 16:42:08 2007
Fri Nov 23 07:38:10 2007
ARC1: Media recovery disabled
Regards,
Erick -
Hi All,
We have a requirement to create a new document category for a attachment. For this we have created a new function from "ARXTWMAI" form. Then we created a new document function with this function from Attachment-> Document attachment
After creating this custom function i have attached it to our custom created document category from Attachment->documet categories.
We want to migrate this to our another instance. Is this possible that we can download ldt for this so that we can simply migrate this setup to another instance without doing any setup over there,
Thanks in advance
AryanHi Aryan,
You can use the FNDLOAD command to download the form in desired ltd format,
FNDLOAD apps/<apps_password> O Y DOWNLOAD $FND_TOP/patch/115/import/affrmcus.lct <file_name>.ldt FND_FORM_CUSTOM_RULES FORM_NAME=<form_name>Thanks,
Anchorage :) -
How to use host command for creating folders
i want to create a folder called abc in my C drive using forms 6i.
how can i do it using Host command?Host('MD C:\ABC');Francois
-
Create tablespace in Oracle 11g
Windows 2008 R2 (64-bit OS)
Oracle 11g R2 Standard Edition ONE(64-bit database)
I use the following Oracle command to create tablespace in 11g.
CREATE TABLESPACE TEST_TBS
DATAFILE
'C:\ORACLE\ORADATA\TEST_TBS01.DBF' SIZE 5M
AUTOEXTEND ON NEXT 5M
MAXSIZE 50000M;
- The above command works fine.
Is there any better commands i need to be using in creating a tablespace w.r.t. performance and management.TSharma wrote:
it is recommended to have small sized blocks for OLTP, and big sized for DSS. The reasons:
You can try different block sizes in tablespaces...
On OLTP, a smaller block size reduces contention:
1. Reduces the possibility of concurrent transaction and locks on the same block.
2. Provides a better locking mechanism
3. Less transacction locks possibilities at the block header.
DSS benefit from big blocks mainly because of IO:
1. Retrieves in less IO operations more data, which is critical for FTS and index scans.
2. A higher row density means less IO
3. Indexes retrieve information on a block per block basis, with big blocks indexes are retrieved with less IO
4. Reduces the chances of chained rows.
Check the following link for examples and details information.If johnpau needs a 50G file he has no choice: 16K blocks is the only option.
But that advice about different blocksizes is very twentieth century. Nowadays, it doesn't matter. -
I'm unable to get sqlplus to recognize predefined Windows environment variables. For example:
CREATE TABLESPACE PRODUCT DATAFILE '%ORACLE_DIR%\oradata\xxx\PRODUCT.DAT' SIZE 1M AUTOEXTEND ON NEXT 1M;
%ORACLE_DIR% = C:\bas\db\oracle
After trying to execute this statement the following error gets returned:
ERROR at line 1:
ORA-01119: error in creating database file
'BAS_ORACLE_HOME\oradata\bas\PRODUCT.DAT'
ORA-27040: skgfrcre: create error, unable to create file
OSD-04002: unable to open file
O/S-Error: (OS 3) The system cannot find the path specified.
However, when I enter the command as:
CREATE TABLESPACE PRODUCT DATAFILE 'C:\bas\db\oracle\oradata\xxx\PRODUCT.DAT' SIZE 1M AUTOEXTEND ON NEXT 1M;
The tablespace gets completed successfully.
Therefore, how do I get the CREATE TABLESPACE statement to recognize ORACLE_DIR?
Thank you in advance for your help!I sometimes pass in filenames as parameters to SQL*Plus
and then use the argument substitution variables.
For example:
sqlplus system/manager @myscript.sql c:\mydir\myfile
Where myscript.sql contains
create .... datafile '&1' ...
Another common solution is to construct the script
in a shell environment that does the the OS variable
expansion before the script is passed to SQL*Plus.
Typically this is with a "here document". In Perl
it would be something like:
sqlplus -s <<EOF;
system/manager
create ... datafile $ENV{'ORACLE_DIR'} ...
exit
EOF
-- C -
I need to create internal PDF hyperlinks with the link tool on selected text -- however I need the links to be created via the normal application menu, and not from the context menu (i.e. not via "right-click --> "create link").
However, I can't find a menu command for "create link" anywhere.
Help is greatly appreciated.
David.PThanks -- however, context menu items do tend to be duplicates of application menu items as you can see from any application of your choice.
The link tool does not help since it is not capable to
> create internal PDF hyperlinks on selected text
Therefore I really am looking for an application menu item for creating a hyperlink (similar like with the highlighting of selected text via "Comments" --> "Edit Text" --> "Highlight Selected Text", to be found a second time under "Tools" --> "Commenting" --> "Edit Text" --> "Highlight Selected Text"). -
i need your advise:
is advisable to create tablespaces on folder where it is database file as (redo, system, controlfiles) or is better to create a folder on other disk for creating tablespaces.
thanks..The whole concept of dealing with datafiles, controlfiles & logfiles on the disk layer is a little outdated, in my view.
On a very small system - you have just 2 drives - then yes: It is important to use a separate drive to store your backups & archivelogs and to put your mirrored controlfiles & logfile members on. In other words: one drive for the Recovery Area. The other drive is for the Database Area.
For a database of significant size and/or with I/O Performance critical, you will use as many drives as you can get and Stripe And Mirror Everything (SAME) upon those drives - with 2 ASM diskgroups (One Database Area, one Recovery Area) preferrable. ASM is the technical Implementation of the SAME concept.
Kind regards
Uwe Hesse
http://uhesse.wordpress.com -
Creating tablespace,datafiles,logfiles, controlfiles etc on ASM
What is command to create tablespace,datafiles,logfiles, controlfiles etc on ASM disk group? Send me few example sql commands plz.
You might find Chapter 12 of the Administrators Guide to be some help in understanding ASM. The chapter has many examples.
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/storeman.htm#i1021337 -
Error in "Checking Availabe Space for the DB2 UDB for Unix..." phase
Hello,
We are in the middle of an Upgrade proyect from R/3 4.6C (kernet 4.6D EXT) to ECC 6.0.
As a first step we are doing an Heterogenous System Copy to migrate from servers with HP-UX B11.11/Informix 9.4 to servers with AIX 5.3/DB2 UDB 8.
We already did the database import with no errors. When we are installing R3 4.6C in the target server we are getting u201CMemory Fault (coredump)u201D error in the u201CChecking Availabe Space for the DB2 UDB for Unix, Windows Tablespacesu201D phase.
Any advice will be appreciated.
Best Regards
FranciscoHello Paul,
There is no db2diag.log. We are in the first steps of the installation.
Operating System logs just shows an ABNORMALY TERMINATION OF SOTWARE error.
This is the CEDBMIG.log
INFO 2010-08-04 10:12:00 CommandFileController SyFileCopy:150
Copying source file CEDBMIG.R3S to target file CEDBMIG.R3S.30 ...
INFO 2010-08-04 10:12:01 Main
Preparation successfully completed.
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:434
checking host name lookup for 'sapqas'
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:473
offical host name for 'sapqas' is 'sapqas'.
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:541
host 'sapqas' has ip address '172.26.26.64'
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:581
offical host name for '172.26.26.64' is 'sapqas'.
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:434
checking host name lookup for 'sapqas'
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:473
offical host name for 'sapqas' is 'sapqas'.
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:541
host 'sapqas' has ip address '172.26.26.64'
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:581
offical host name for '172.26.26.64' is 'sapqas'.
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:434
checking host name lookup for 'sapqas'
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:473
offical host name for 'sapqas' is 'sapqas'.
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:541
host 'sapqas' has ip address '172.26.26.64'
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:581
offical host name for '172.26.26.64' is 'sapqas'.
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:434
checking host name lookup for 'sapqas'
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:473
offical host name for 'sapqas' is 'sapqas'.
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:541
host 'sapqas' has ip address '172.26.26.64'
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:581
offical host name for '172.26.26.64' is 'sapqas'.
INFO 2010-08-04 10:12:23 CDSERVERMIG_IND_DB6 InternalColdKeyCheck:0
The CD KERNEL will not be copied.
INFO 2010-08-04 10:12:23 CDSERVERMIG_IND_DB6 InternalColdKeyCheck:0
The CD RDBMS will not be copied.
INFO 2010-08-04 10:12:23 CDSERVERMIG_IND_DB6 InternalColdKeyCheck:0
The CD EXPORT1 will not be copied.
INFO 2010-08-04 10:12:23 CALCRAM_IND_DB6 SyCoprocessCreate:300
Creating coprocess /usr/sbin/lsattr -El sys0 -a realmem ...
INFO 2010-08-04 10:12:23 CALCRAM_IND_DB6 SyRamSizeGet:100
The process lsattr puts out:
realmem 8388608 Amount of usable physical memory in Kbytes False
INFO 2010-08-04 10:12:23 CALCRAM_IND_DB6 SyRamSizeGet:700
Physical RAM size is 8192 MB.
INFO 2010-08-04 10:12:23 CALCRAM_IND_DB6 SySwapGetSize:100
Retrieving swap space size ...
INFO 2010-08-04 10:12:23 CALCRAM_IND_DB6 SyCoprocessCreate:300
Creating coprocess /usr/sbin/lsps -s ...
INFO 2010-08-04 10:12:23 CALCRAM_IND_DB6 SySwapGetSize:150
The process lsps puts out:
Total Paging Space Percent Used
INFO 2010-08-04 10:12:23 CALCRAM_IND_DB6 SySwapGetSize:150
The process lsps puts out:
8192MB 1%
INFO 2010-08-04 10:12:23 CALCRAM_IND_DB6 SySwapGetSize:500
Currently activated swap space is 8192 MB.
INFO 2010-08-04 10:12:31 CENTRDBINSTANCE_IND_DB6 InternalWarmKeyCheck:0
The installation phase is starting now. Please look in the log
file for further information about current actions.
INFO 2010-08-04 10:12:31
Requesting Installation Details
INFO 2010-08-04 10:12:31
Reading and Checking DB2 UDB for UNIX, Windows Specific Keys
INFO 2010-08-04 10:12:31
Select the DB2 Storage Management.
INFO 2010-08-04 10:12:31
Choose the number of storage paths for DB2's Automatic Storage
Management.
INFO 2010-08-04 10:12:31 CDSERVERMIG_IND_DB6 InternalWarmKeyCheck:0
The CD KERNEL will not be copied.
INFO 2010-08-04 10:12:31 CDSERVERMIG_IND_DB6 InternalWarmKeyCheck:0
The CD RDBMS will not be copied.
INFO 2010-08-04 10:12:31 CDSERVERMIG_IND_DB6 InternalWarmKeyCheck:0
The CD EXPORT1 will not be copied.
INFO 2010-08-04 10:12:31
Requesting Information on CD-ROMs
INFO 2010-08-04 10:12:31
Calculating RAM Distribution
INFO 2010-08-04 10:12:31
Creating the Service Entry for the Dispatcher
INFO 2010-08-04 10:12:31
Creating the Service Entry for the Gateway Service
INFO 2010-08-04 10:12:31
Creating the Service Entry for the Secure Gateway Service
INFO 2010-08-04 10:12:31
Creating the Service Entry for the Message Server
INFO 2010-08-04 10:12:31
Creating the SAP Administration Group sapsys
INFO 2010-08-04 10:12:32
Creating the Database Administration Group db<dbsid>adm
INFO 2010-08-04 10:12:32
Creating the Group db<dbsid>ctl
INFO 2010-08-04 10:12:32
Creating the Group db<dbsid>mnt
INFO 2010-08-04 10:12:32
Creating the SAP connect user
INFO 2010-08-04 10:12:32
Setting Password of the SAP connect user
INFO 2010-08-04 10:12:32
Creating the db2<sapsid> User
INFO 2010-08-04 10:12:32
Setting the User Password
INFO 2010-08-04 10:12:32
Creating the SAP System Administrator
INFO 2010-08-04 10:12:32
Setting Password for for the SAP System Administrator
INFO 2010-08-04 10:12:32
Creating Directories
INFO 2010-08-04 10:12:32
Creating Symbolic Links
INFO 2010-08-04 10:12:32
Getting Minimal Size of the Database
INFO 2010-08-04 10:12:32
Changing DB2 UDB for UNIX, Windows Tablespace Data
INFO 2010-08-04 10:12:32
Checking if Required Directories Exist
INFO 2010-08-04 10:12:32
Checking Available Space for the SAP Instance
INFO 2010-08-04 10:12:32
Checking Available Space for the DB2 UDB for UNIX, Windows
Tablespaces
This is the CEDBMIG.R3S log
120_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/SAPSRC.CSH
130_SOURCE=@DB_HOME@/.cshrc
130_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/DBSRC.CSH
200_SOURCE=@DB_HOME@/.profile
200_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/SAPSRC.SH
210_SOURCE=@DB_HOME@/.profile
210_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/DBSRC.SH
[Z_OSUSERSIDADMENVIRONMENT_IND_DB6]
100_GROUP=sapsys
100_OWNER=@LOWER_SAPSYSTEMNAME@adm
100_PERMISSION=0644
100_SOURCE=@HOME@/.login
100_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/SAPSRC.CSH
110_SOURCE=@HOME@/.login
110_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/DBSRC.CSH
120_GROUP=sapsys
120_OWNER=@LOWER_SAPSYSTEMNAME@adm
120_PERMISSION=0644
120_SOURCE=@HOME@/.cshrc
120_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/SAPSRC.CSH
130_SOURCE=@HOME@/.cshrc
130_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/DBSRC.CSH
200_SOURCE=@HOME@/.profile
200_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/SAPSRC.SH
210_SOURCE=@HOME@/.profile
210_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/DBSRC.SH
[Z_R3DIRECTORIES_IND_IND]
101_PATH=@SAPDIR@
101_PERMISSION=0775
101_SET_FILE_ATTRIBUTES=YES
101_USERGROUP=sapsys
101_USERNAME=@LOWER_SAPSYSTEMNAME@adm
102_PATH=@SAPDIR@/tmp
103_PATH=@SAPDIR@/trans
104_PATH=@SAPDIR@/trans/tmp
104_SET_FILE_ATTRIBUTES=NO
105_PATH=@SAPDIR@/trans/EPS
106_PATH=@SAPDIR@/trans/EPS/in
107_PATH=@SAPDIR@/trans/EPS/out
108_PATH=@SAPDIR@/trans/EPS/log
109_PATH=@SAPDIR@/trans/bin
110_PATH=@SAPDIR@/trans/buffer
111_PATH=@SAPDIR@/trans/cofiles
112_PATH=@SAPDIR@/trans/data
113_PATH=@SAPDIR@/trans/etc
114_PATH=@SAPDIR@/trans/log
115_PATH=@SAPDIR@/trans/sapnames
120_PATH=@SAPDIR@/@SAPSYSTEMNAME@
120_PERMISSION=0751
120_SET_FILE_ATTRIBUTES=YES
121_PATH=@SAPDIR@/@SAPSYSTEMNAME@/SYS
121_PERMISSION=0755
122_PATH=@SAPDIR@/@SAPSYSTEMNAME@/SYS/exe
123_PATH=@SAPDIR@/@SAPSYSTEMNAME@/SYS/exe/opt
124_PATH=@SAPDIR@/@SAPSYSTEMNAME@/SYS/gen
125_PATH=@SAPDIR@/@SAPSYSTEMNAME@/SYS/gen/opt
126_PATH=@SAPDIR@/@SAPSYSTEMNAME@/SYS/gen/dbg
127_PATH=@SAPDIR@/@SAPSYSTEMNAME@/SYS/src
128_PATH=@SAPDIR@/@SAPSYSTEMNAME@/@INSTANCENAME@
129_PATH=@SAPDIR@/@SAPSYSTEMNAME@/@INSTANCENAME@/data
130_PATH=@SAPDIR@/@SAPSYSTEMNAME@/@INSTANCENAME@/log
131_PATH=@SAPDIR@/@SAPSYSTEMNAME@/@INSTANCENAME@/work
131_PERMISSION=0775
132_PATH=@SAPMOUNT@
140_PATH=@SAPMOUNTEXE@
141_PATH=@SAPMOUNTPROFILE@
141_PERMISSION=0755
142_PATH=@SAPMOUNTGLOBAL@
142_PERMISSION=0700
150_PATH=@SAPDIR@/@SAPSYSTEMNAME@/@INSTANCENAME@/sec
160_PATH=@STARTDIRECTORY@
160_PERMISSION=0777
[Z_R3DIRPERMISSIONS_IND_IND]
101_CHANGE_ON_NFS=NO
101_PATH=@SAPMOUNT@
101_PERMISSION=0755
101_TRAVERSE=
101_USERGROUP=sapsys
101_USERNAME=@LOWER_SAPSYSTEMNAME@adm
102_CHANGE_ON_NFS=NO
102_PATH=@SAPMOUNTEXE@
102_PERMISSION=0755
102_TRAVERSE=
102_USERGROUP=sapsys
102_USERNAME=@LOWER_SAPSYSTEMNAME@adm
103_CHANGE_ON_NFS=NO
103_PATH=@SAPMOUNTGLOBAL@
103_PERMISSION=0710
103_TRAVERSE=
103_USERGROUP=db@LOWER_DB_SID@adm
103_USERNAME=@LOWER_SAPSYSTEMNAME@adm
104_CHANGE_ON_NFS=NO
104_PATH=@SAPMOUNTPROFILE@
104_PERMISSION=0755
104_TRAVERSE=
104_USERGROUP=sapsys
104_USERNAME=@LOWER_SAPSYSTEMNAME@adm
105_CHANGE_ON_NFS=NO
105_PATH=@SAPDIR@/@SAPSYSTEMNAME@
105_PERMISSION=0755
105_TRAVERSE=
105_USERGROUP=sapsys
105_USERNAME=@LOWER_SAPSYSTEMNAME@adm
120_CHANGE_ON_NFS=NO
120_PATH=@HOME@
120_PERMISSION=0700
120_TRAVERSE=
120_USERGROUP=sapsys
120_USERNAME=@LOWER_SAPSYSTEMNAME@adm
121_CHANGE_ON_NFS=NO
121_PATH=@HOME@
121_PERMISSION=0777
121_TRAVERSE=FILES
121_USERGROUP=sapsys
121_USERNAME=@LOWER_SAPSYSTEMNAME@adm
130_CHANGE_ON_NFS=NO
130_PATH=@STARTDIRECTORY@
130_PERMISSION=0777
130_TRAVERSE=
130_USERGROUP=sapsys
130_USERNAME=@LOWER_SAPSYSTEMNAME@adm
140_CHANGE_ON_NFS=YES
140_PATH=@SAPDIR@/trans
140_PERMISSION=0775
140_TRAVERSE=
140_USERGROUP=sapsys
140_USERNAME=@LOWER_SAPSYSTEMNAME@adm
141_CHANGE_ON_NFS=YES
141_PATH=@SAPDIR@/trans/bin
141_PERMISSION=0775
141_TRAVERSE=
141_USERGROUP=sapsys
141_USERNAME=@LOWER_SAPSYSTEMNAME@adm
[Z_R3FILEPERMISSIONS_IND_IND]
101_CHANGE_ON_NFS=NO
101_PATH=@SAPMOUNTEXE@
101_PERMISSION=0755
101_TRAVERSE=SUBDIRECTORIES
101_USERGROUP=sapsys
101_USERNAME=@LOWER_SAPSYSTEMNAME@adm
102_CHANGE_ON_NFS=NO
102_PATH=@SAPMOUNTEXE@
102_PERMISSION=0755
102_TRAVERSE=FILES
102_USERGROUP=sapsys
102_USERNAME=@LOWER_SAPSYSTEMNAME@adm
103_CHANGE_ON_NFS=NO
103_PATH=@SAPMOUNTGLOBAL@
103_PERMISSION=0700
103_USERGROUP=sapsys
103_USERNAME=@LOWER_SAPSYSTEMNAME@adm
104_CHANGE_ON_NFS=NO
104_PATH=@SAPMOUNTPROFILE@
104_PERMISSION=0755
104_TRAVERSE=SUBDIRECTORIES
104_USERGROUP=sapsys
104_USERNAME=@LOWER_SAPSYSTEMNAME@adm
105_CHANGE_ON_NFS=NO
105_PATH=@SAPMOUNTPROFILE@
105_PERMISSION=0755
105_TRAVERSE=FILES
105_USERGROUP=sapsys
105_USERNAME=@LOWER_SAPSYSTEMNAME@adm
106_CHANGE_ON_NFS=NO
106_PATH=@SAPMOUNTEXE@/saposcol
106_PERMISSION=04755
106_USERGROUP=sapsys
106_USERNAME=root
112_CHANGE_ON_NFS=NO
112_PATH=@SAPDIR@/@SAPSYSTEMNAME@
112_PERMISSION=0751
112_TRAVERSE=SUBDIRECTORIES
112_USERGROUP=sapsys
112_USERNAME=@LOWER_SAPSYSTEMNAME@adm
113_CHANGE_ON_NFS=NO
113_PATH=@SAPDIR@/@SAPSYSTEMNAME@
113_PERMISSION=0751
113_TRAVERSE=FILES
113_USERGROUP=sapsys
113_USERNAME=@LOWER_SAPSYSTEMNAME@adm
114_CHANGE_ON_NFS=NO
114_PATH=@SAPDIR@/@SAPSYSTEMNAME@/SYS
114_PERMISSION=0755
114_TRAVERSE=SUBDIRECTORIES
114_USERGROUP=sapsys
114_USERNAME=@LOWER_SAPSYSTEMNAME@adm
115_CHANGE_ON_NFS=NO
115_PATH=@SAPDIR@/@SAPSYSTEMNAME@/SYS
115_PERMISSION=0755
115_TRAVERSE=FILES
115_USERGROUP=sapsys
115_USERNAME=@LOWER_SAPSYSTEMNAME@adm
116_CHANGE_ON_NFS=NO
116_PATH=@SAPDIR@/@SAPSYSTEMNAME@/@INSTANCENAME@
116_PERMISSION=0755
116_TRAVERSE=SUBDIRECTORIES
116_USERGROUP=sapsys
116_USERNAME=@LOWER_SAPSYSTEMNAME@adm
117_CHANGE_ON_NFS=NO
117_PATH=@SAPDIR@/@SAPSYSTEMNAME@/@INSTANCENAME@
117_PERMISSION=0755
117_TRAVERSE=FILES
117_USERGROUP=sapsys
117_USERNAME=@LOWER_SAPSYSTEMNAME@adm
118_CHANGE_ON_NFS=NO
118_PATH=@SAPDIR@/@SAPSYSTEMNAME@/@INSTANCENAME@/work
118_PERMISSION=0775
118_USERGROUP=sapsys
118_USERNAME=@LOWER_SAPSYSTEMNAME@adm
120_CHANGE_ON_NFS=NO
120_PATH=@HOME@
120_PERMISSION=0700
120_USERGROUP=sapsys
120_USERNAME=@LOWER_SAPSYSTEMNAME@adm
121_CHANGE_ON_NFS=NO
121_PATH=@HOME@
121_PERMISSION=0700
121_TRAVERSE=FILES
121_USERGROUP=sapsys
121_USERNAME=@LOWER_SAPSYSTEMNAME@adm
[Z_R3LINKS_IND_IND]
101_LINKCONTENT=@SAPMOUNTEXE@
101_LINKNAME=@SAPDIR@/@SAPSYSTEMNAME@/SYS/exe/dbg
102_LINKCONTENT=dbg
102_LINKNAME=@SAPDIR@/@SAPSYSTEMNAME@/SYS/exe/run
103_LINKCONTENT=@SAPMOUNTGLOBAL@
103_LINKNAME=@SAPDIR@/@SAPSYSTEMNAME@/SYS/global
104_LINKCONTENT=@SAPMOUNTPROFILE@
104_LINKNAME=@SAPDIR@/@SAPSYSTEMNAME@/SYS/profile
[Z_SAPDATAPATH]
S1=/db2/@SAPSYSTEMNAME@/sapdata1
S2=/db2/@SAPSYSTEMNAME@/sapdata2
S3=/db2/@SAPSYSTEMNAME@/sapdata3
S4=/db2/@SAPSYSTEMNAME@/sapdata4
S5=/db2/@SAPSYSTEMNAME@/sapdata5
S6=/db2/@SAPSYSTEMNAME@/sapdata6
SAPDATAT=/db2/@SAPSYSTEMNAME@/sapdatat
As you can see there is not an error message, the installation simply stops when the try to check the space available for tablespaces.
Regards -
How Can i Use /db2/ DBSID /saptemp* tablespace in DB2 9.5
Hi Guys,
I have installed a new system DB2 and at the time of installation i defined 1 mount point as /db2/SID/saptemp1 but it is not being used. I have two queries ?
1. How can i use /db2/SID/saptemp1 tablespace in DB2 at the time of installation ?
2. How can i use /db2/SID/saptemp1 tablespace in DB2 after the installation?
Please mention the note number if available for same solution.
Thanks in Advance....!!!
Regards,Hello,
with newer SAPINST versions, tempoary tablespaces are created in the /db2/SID/sapdata(n) filesystems.
To answer your questions:
1) This depends on the SAPINST version, but usually there is an option that lets you create the tablespaces manually. Check if there is an Option in the SAPINST dialog "Create Tablespaces with SAPinst.". If you deselect it, you can create them manually.
2) The procedure would be to create a new temparay tablespace in your preferred filesystem(s), to drop the old one and optionally to rename the new one to the old name.
Regards, Hans-Juergen -
hi ,
I am new to db2 database
I have the following query
1.) How can we check the scheme owner of the db2 database .
2.) I wanted to reset the DDIC passsword from the database command prompt , can anybody give me the syntax of the command.
3.) How to connect to db2 database from command prompt.
Regards
Anthony
Edited by: Anthony D'souza on Jun 3, 2008 1:33 PMHi Anthony,
I would like to complement the answer of Anil Lella by providing other information related to your questions:
1.) How can we check the schema owner of the db2 database .
DB2 UDB for Unix and Windows (let's call it up to now DB6) uses different authorizations and privileges. One of them is the DBADM authorization, which is granted by default to the creator of the database.
You can execute the following query to get a list of users, who have the DBADM authorization:
SELECT DISTINCT GRANTEE, GRANTEETYPE FROM SYSCAT.DBAUTH WHERE DBADMAUTH = 'Y'
Besides whenever you create a table in DB6, a default schema is associated with it; therefore, if you are connected with the user db2bn7 and you create a table, i.e.: mytable, then the table will be fully referenced by other users using the name db2bn7.mytable.
Therefore, it might be possible you get more than one schema, that by running the query against syscat.schemata.
2.) I wanted to reset the DDIC password from the database command prompt , can anybody give me the syntax of the command.
I am not pretty sure, whether it is possible to perform such a reset from the database command prompt. As far as I know the DDIC user is a user from you SAP system, there is no correlation of this user to an operating system user or something like that. Therefore I would suspect, there is no way to do it.
Besides, there is no such utility from DB6, which can interact with users created inside an SAP system.
3.) How to connect to db2 database from command prompt.
The answer of Anil is right. It depends on the kind of client you are, either local or remote. Just to complement the answer, I would mention as additional step, that you first must catalog the host holding the database as a TCP/IP node in your remote client. After that, you can catalog the database at the remote machine stating that the database at that node.
When connecting from a local client, you do not need to catalog any database, because as part of the database creation process it is cataloged automatically.
As general information source about DB6, I would suggest you to read the IBM documentation. In the following websites you have access to each DB2 UDB version documentation (listed from DB2 9.5, 9 and 8):
http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp
http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp
http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp
For question 1.) you will get further information by reading the entry for the CREATE DATABASE command.
For question 2.) you will get further information by reading the entry for the CONNECT statement and/or the CATALOG DATABASE/CATALOG TCPIP NODE.
Another interesting source of information is the preparation documentation for the DB2 Family Fundamentals Certification. You get access to this documentation in this site:
http://www.ibm.com/developerworks/offers/lp/db2cert/db2-cert730.html
Part 2 and Part 3 have further information about your questions.
Best Regards, Edgardo -
Welcome to the SAP on DB2 UDB for i5/OS forum
<b>Welcome to the SAP on DB2 UDB for i5/OS forum!</b>
Participate in the community of users running SAP on a system i5. This forum is intended to be the place to ask your questions concerning SAP on system i5, to answer other users questions, and to share your experiences.
Please read the <i>Rules of Engagement</i> before you post your first message here.
Be part of the SAP on system i5 community and enjoy this forum!
Kind regards,
Jan StallkampI'm not sure that it is actually possible to parameterize the DYNR. Anyway, it would still leave you the problem that the field descriptors in the command interface would all be wrong.
My suggestion for getting around this is to make several recordings using the SAPGUI command, creating a new command for each screen change. You can then edit the script so that the different cases between which you want to differentiate are separated by IF...ELSEIF...ENDIF commands.
You might then have something that looks like this (pseudocode):
* SAPGUI command for common "opening part" of transaction
IF (subtype = 'LA').
*SAPGUI covering screen 2001
ELSEIF (subtype = 'LW').
* SAGPGUI covering screen 2000
ENDIF.
* SAPGUI for common "closing part" of transaction - if relevant. -
Problem creating dataset using db2 stored procedure in Eclipse BIRT
Hi,
I am using DB2 9.7 Express Edition in Eclipse BIRT(version 2.5.1) for generating reports. I have used Type4 driver for jdbc connection.
For that, I have established jdbc connection using db2jcc.jar and db2jcc_license_cu.jar files.
I have successfully created data source, say DB2BIRT having following requisites-
Driver Class - com.ibm.db2.jcc.DB2Driver ( v3.50)
Driver URL - jdbc:db2://localhost:50000/database_name
User name - user_name
Password - Password
I have written some stored procedures and trying to use resultsets from those stored procedures into my report..
The stored procedures having involvement of only single resultset are working absolutely fine for new dataset using above DB2BIRT.
But, I am unable to create new dataset using stored procedures those having involvement of multiple resultsets.
I am getting following error as -
org.eclipse.birt.data.engine.odaconsumer.PreparedStatement$SequentialResultSetHandler getMoreResults
SEVERE: Cannot get more result sets from the statement.
Cannot get the result set.
SQL error #1: [jcc][10120][10943][3.50.152] Invalid operation: statement is closed. ERRORCODE=-4470, SQLSTATE=null
org.eclipse.birt.report.data.oda.jdbc.JDBCException: Cannot get the result set.
SQL error #1: [jcc][10120][10943][3.50.152] Invalid operation: statement is closed. ERRORCODE=-4470, SQLSTATE=null
com.ibm.db2.jcc.b.SqlException: [jcc][10120][10943][3.50.152] Invalid operation: statement is closed. ERRORCODE=-4470, SQLSTATE=null
at org.eclipse.birt.report.data.oda.jdbc.CallStatement.getMoreResults(CallStatement.java:1760)
at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaAdvancedQuery.getMoreResults(OdaAdvancedQuery.java:214)
at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement$SequentialResultSetHandler.getMoreResults(PreparedStatement.java:5183)
at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.getMoreResults(PreparedStatement.java:792)
at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.flushResultSets(PreparedStatement.java:1009)
at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.close(PreparedStatement.java:980)
at org.eclipse.birt.data.engine.executor.DataSource$DataSourceReleaser.run(DataSource.java:374)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.ibm.db2.jcc.b.SqlException: [jcc][10120][10943][3.50.152] Invalid operation: statement is closed. ERRORCODE=-4470, SQLSTATE=null
at com.ibm.db2.jcc.b.wc.a(wc.java:55)
at com.ibm.db2.jcc.b.wc.a(wc.java:102)
at com.ibm.db2.jcc.b.tk.db(tk.java:3118)
at com.ibm.db2.jcc.b.tk.a(tk.java:1063)
at com.ibm.db2.jcc.b.tk.getMoreResults(tk.java:908)
at org.eclipse.birt.report.data.oda.jdbc.CallStatement.getMoreResults(CallStatement.java:1756)
... 7 more
Moreover, I tried to resolve above issue by changing Driver Class from com.ibm.db2.jcc.DB2Driver ( v3.50) to com.ibm.db2.jcc.uw.DB2StoredProcDriver ( v3.50)
So again while *"Test Connection"* for new Data source using this new driver class for stored procedure, there is an error reflection as -
org.eclipse.birt.report.data.oda.jdbc.JDBCException: The selected driver cannot parse the given url.
at org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager.testConnection(JDBCDriverManager.java:627)
at org.eclipse.birt.report.data.oda.jdbc.ui.util.DriverLoader.testConnection(DriverLoader.java:120)
at org.eclipse.birt.report.data.oda.jdbc.ui.util.DriverLoader.testConnection(DriverLoader.java:133)
at org.eclipse.birt.report.data.oda.jdbc.ui.profile.JDBCSelectionPageHelper.testConnection(JDBCSelectionPageHelper.java:653)
at org.eclipse.birt.report.data.oda.jdbc.ui.profile.JDBCSelectionPageHelper.access$7(JDBCSelectionPageHelper.java:627)
at org.eclipse.birt.report.data.oda.jdbc.ui.profile.JDBCSelectionPageHelper$7.widgetSelected(JDBCSelectionPageHelper.java:549)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3493)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.birt.report.designer.ui.dialogs.BaseDialog.open(BaseDialog.java:110)
at org.eclipse.birt.report.designer.data.ui.actions.EditDataSourceAction.doAction(EditDataSourceAction.java:68)
at org.eclipse.birt.report.designer.internal.ui.views.actions.AbstractElementAction.run(AbstractElementAction.java:70)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3493)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Can anybody address my this issue for successful implementation of stored procedure(with involvement of multiple resultsets) for creating Data set in Eclipse BIRT ?
I will be really thankful.
Thanks in advance,
ManasiWell, in my stored procedure I have used 2 to3 cursors(as per my business logic) and all cursors except one are holding result sets. That exceptional cursor is intended for holding as well as returning result set after call to the procedure. And its perfectly running on db2 and returning the desired output. The problem is with Eclipse. The same procedure is not working in Eclipse BIRT.
-
How to run db2 command by using Runtime exec
Hello
I am using java. When i am runing db2 command by using Runtime.exec( String cmd, String[] env ). I gave the environment path
DB2CLP=6259901
DB2DRIVER=D:\ibm\db2\java\db2java.zip
DB2HOME=D:\ibm\db2
DB2INSTANCE=DB2
DB2MMTOP=D:\CMBISS
but still I am getting error message
"DB21061E Command line environment not initialized"
after setting the above path in the cmd It is working fine. When i am trying thro java programm i am getting the above error. Can I get answer for this.
bhaski.Before you can execute DB2 commands you have to open a DB2 CLP. The following code will do so:
import java.io.IOException;
public class Db2 {
public static void main(String args[]) {
try {
Runtime rt = Runtime.getRuntime();
Process child = rt.exec("db2cmd");
child.waitFor();
catch (IOException io) {
io.printStackTrace();
catch (InterruptedException e) {
e.printStackTrace();
Maybe you are looking for
-
Hi All, I am working on a database refresh and it failed with the following errors RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: ===========
-
when launching adobe captivate 7, i am required to login, I login and captivate never launches
-
Error-1074​396074 incomptibl​e image size
I am working in image processing field and following one of the project.i am using webcam of the lenovo laptop for capturing images.but the image size is not compatible with the range to be used for processing.how to resolve this problem?
-
ADVANCED DEVELOPER CONFERENCE LAB NOW AVAILABLE
The entire Advanced Developer Conference lab, complete with full source, is now available on the DeveloperCenterSamples page. The lab is a complete application for a fictional company, Remedy Pharmaceuticals. It includes clear and commented code in J
-
JVC SR-VS30U Deck Not Recognized
Hi all, Just bought a G-5 and I'm having a problem many seem to be having trying to have my JVC Deck (SR-VS30U) communicate with FCP. I'm trying to capture min-DV clips in FCP. I've tried changing my AV settings to Non-controllable device and to Fire