How to find Oudated Logical Database
Hello,
How to findout wheather a Logical Database is outdated or not.
Anyone have idea for replace LDB TIF with new LDB.
Waiting for response,
Reg
There are two ways of using a logical database - either by linking it with the executable program(specify the LDB name in the program attributes) or by using the function module LDB_PROCESS.
1.Data read by the logical database is passed back to the program using the interface work areas.Use GET statements in the report.
GET events are implemented internally as FORM routines.
2.If you call the logical database using the above function module, the selection screen of LDB is not displayed.It uses special subroutines called callback routines, which are called by the function module and filled with the required data.
Please refer the following link for more details.
http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
Similar Messages
-
How to create a logical database?
Hi,
Can anyone tell me how to create a logical database? I am curious about it.
Thanks.
Awards will be provided.
Best regards,
Chris GuTransaction code for creating Logical db is se36.
Give the name as <ldbname>..
Specify the table names and the sub nodes according to your heirarchy.The root node used is zxxx_product and child node is zxxx_orders
The heirarchy used is ZXXX_PRODUCT---->ZXXX_ORDERS
write the below code under selections ...
Enable DYNAMIC SELECTIONS for selected nodes :
SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE zxxx_product.
SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE zxxx_orders.
Enable FIELD SELECTION for selected nodes :
SELECTION-SCREEN FIELD SELECTION FOR TABLE zxxx_product.
SELECTION-SCREEN FIELD SELECTION FOR TABLE zxxx_orders.
***User defined blocks :
****Root node
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001 .
SELECT-OPTIONS :
so_pname FOR zxxx_product-prname ,
so_pdelv FOR zxxx_product-prdeldate .
SELECTION-SCREEN END OF BLOCK b1 .
****Child node
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002 .
SELECT-OPTIONS :
so_odate FOR zxxx_orders-orddate ,
so_oqty FOR zxxx_orders-ordqty .
SELECTION-SCREEN END OF BLOCK b2 .
write the below code under include include DBZXX_PRODUCTTOP
TABLES : ZXXX_product, ZXXX_orders.
DATA : gt_root TYPE table of ZXXX_product ,
gt_chld TYPE table of ZXXX_orders .
write the below code under source code...
Call event GET Zxxx_PRODUCT
FORM put_zxxx_product.
TYPES : BEGIN OF ls_pid ,
prodid TYPE zxxx_product-prodid,
END OF ls_pid .
DATA : lt_pid TYPE ls_pid OCCURS 0 ,
lt_pid_tmp TYPE ls_pid OCCURS 0 .
STATICS lv_first_time VALUE 'X'.
STATICS ls_isroot_fields TYPE rsfs_tab_fields.
STATICS ls_isroot_where TYPE rsds_where.
STATICS ls_ischld_fields TYPE rsfs_tab_fields.
STATICS ls_ischld_where TYPE rsds_where.
IF lv_first_time EQ 'X'.
CLEAR lv_first_time.
o
+ Declarations for field selection for node Zxxx_PRODUCT ***
" move table name to the corresponding field
MOVE 'Zxxx_PRODUCT' TO ls_isroot_fields-tablename.
" Read values from selection screen
READ TABLE select_fields WITH KEY ls_isroot_fields-tablename
INTO ls_isroot_fields.
" move table name to the corresponding field
MOVE 'Zxxx_PRODUCT' TO ls_isroot_where-tablename.
" Read values from dynamic selection screen
READ TABLE dyn_sel-clauses WITH KEY ls_isroot_where-tablename
INTO ls_isroot_where.
o
+ Declarations for field selection for child node Zxxx_ORDERS ***
MOVE 'Zxxx_ORDERS' TO ls_ischld_fields-tablename.
READ TABLE select_fields WITH KEY ls_ischld_fields-tablename
INTO ls_ischld_fields.
MOVE 'Zxxx_ORDERS' TO ls_ischld_where-tablename.
READ TABLE dyn_sel-clauses WITH KEY ls_ischld_where-tablename
INTO ls_ischld_where.
"...Check whether entry is made in atleast one selection field:
IF NOT so_pname IS INITIAL OR
NOT so_pdelv IS INITIAL OR
NOT so_odate IS INITIAL OR
NOT so_oqty IS INITIAL OR
NOT ls_isroot_where-where_tab IS INITIAL OR
NOT ls_ischld_where-where_tab IS INITIAL .
"...Check whether entry is made in atleast one field in root node :
IF NOT so_pname IS INITIAL OR
NOT so_pdelv IS INITIAL OR
NOT ls_isroot_where-where_tab IS INITIAL .
SELECT prodid FROM Zxxx__product
INTO CORRESPONDING FIELDS OF TABLE lt_pid
WHERE prname IN so_pname AND
prdeldate IN so_pdelv AND
(ls_isroot_where-where_tab).
"...Check whether entry is made in atleast one field in child node:
IF NOT so_odate IS INITIAL OR
NOT so_oqty IS INITIAL OR
NOT ls_ischld_where-where_tab IS INITIAL AND
NOT lt_pid IS INITIAL.
SELECT prodid FROM Zxxx_orders
INTO CORRESPONDING FIELDS OF TABLE lt_pid_tmp
FOR ALL ENTRIES IN lt_pid
WHERE prodid = lt_pid-prodid AND
orddate IN so_odate AND
ordqty IN so_oqty AND
(ls_ischld_where-where_tab).
lt_pid = lt_pid_tmp.
ENDIF.
ELSEIF NOT so_odate IS INITIAL OR
NOT so_oqty IS INITIAL OR
NOT ls_ischld_where-where_tab IS INITIAL.
SELECT prodid FROM Zxxx_orders
INTO CORRESPONDING FIELDS OF TABLE lt_pid
WHERE orddate IN so_odate AND
ordqty IN so_oqty AND
(ls_ischld_where-where_tab).
ENDIF.
******lt_pid contains all the selections based product ids
******Now retrieve all the records with the corresponding product ids
CHECK NOT lt_pid IS INITIAL.
IF NOT ls_isroot_fields IS INITIAL.
SELECT (ls_isroot_fields-fields) FROM Zxxx_product
INTO CORRESPONDING FIELDS OF TABLE gt_root
FOR ALL ENTRIES IN lt_pid WHERE prodid = lt_pid-prodid.
ENDIF.
IF NOT ls_ischld_fields IS INITIAL AND
NOT gt_root IS INITIAL.
SELECT (ls_ischld_fields-fields) FROM Zxxx_orders
INTO CORRESPONDING FIELDS OF TABLE gt_chld
FOR ALL ENTRIES IN gt_root WHERE prodid = gt_root-prodid.
ENDIF.
LOOP AT gt_root INTO Zxxx_product.
PUT Zxxx_product.
ENDLOOP.
ENDIF.
ENDIF.
ENDFORM.
write the below code under
include DBZXXX_PRODUCTNXXX -->
include DBZXXX_PRODUCTN002 .
form put_zxxx_orders
LOOP AT gt_chld INTO zxxx_orders WHERE prodid = zxxx_product-prodid.
PUT ZXXX_ORDERS.
ENDLOOP.
endform.
now write a report program and call the ldb by its name using get
get <ldbname>.
Reward if this is useful.
Regards,
devi.
Edited by: Devi Raju on Jul 15, 2008 9:13 AM -
How to execute the logical database.
how to execute the logical database.
There are two ways of using a logical database - either by linking it with the executable program(specify the LDB name in the program attributes) or by using the function module LDB_PROCESS.
1.Data read by the logical database is passed back to the program using the interface work areas.Use GET statements in the report.
GET events are implemented internally as FORM routines.
2.If you call the logical database using the above function module, the selection screen of LDB is not displayed.It uses special subroutines called callback routines, which are called by the function module and filled with the required data.
Please refer the following link for more details.
http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm -
How to find whether remote database is up or not (connected via dblink)
Hi,
I am using dblink to connect Biz database from Dev database.(Biz, Dev - database names)
Running dbms job using the dblink from the Dev database to update data on Biz database...
Problem is dbms job should run if and only if the Biz database is up for which i created the dblink...
1) How to make sure or implement the check to find whether the Biz is database is up or not in Pl/sql or sql...
2) How to reschedule the dbms jobs once the database is up
pls suggest me how to find whether the database is up or not b4 running the dbms job?
Using- Oracle 10gThe only way to know whether the remote database is up (and whether the network between the two databases is up and whether the remote database's listener is up and whether the password configured in the database link is correct and whether the local TNS alias is correct, etc) would be to actually run a query against the remote database over the database link. In other words, the way to figure out whether the link is up is to let the job run and catch & handle exceptions when there are problems.
By default, a job scheduled via DBMS_JOB will automatically reschedule itself if there is an unhandled exception by geometrically backing off (it waits 1 minute after the first failure, 2 minutes after the second, 4, 8, 16, 32 minutes, etc until it's marked as broken after 16 failures). You could, of course, catch appropriate exceptions and handle them in a reasonable fashion and manually reschedule jobs at intervals that make more sense for your particular job.
Justin -
How to find relationship between database tables
Hi Mate,s.
Iam new to SAPBW , PLZ tell me , How to find releationship between database table(Transperent tables).
Regards.
harryhi harry,
from your previous postings, i guess you are asking relationship between tables in r/3, following links may help :
http://www.sapgenie.com/abap/tables.htm
http://www.sapgenie.com/abap/tables_sd.htm
http://www.sapgenie.com/abap/tables_mm.htm
http://www.sapgenie.com/abap/tables_fi.htm
http://www.sapgenie.com/abap/tables_ps.htm -
How to use a Logical Database in Function Module.
Hi Experts,
I want to use a logical database in a Function Module to fetch data from a standard SAP table into a Internal table for certain filter conditions.
How can I get get this done????
I called LDB_PROCESS FM in my FM, but I could not figure out how to store the extract in my IT table since we cant use GET in FM.
Please provide me a sample code if possible.
Thanks in Advance,
Alex.Hi,
i had an example program like this ,in this i want to get the data using pnp logical database with 5 fields in an interface program.
data: begin of it_final occurs 0,
pernr like pa0002-pernr,
vorna like pa0002-vorna,
nachn like pa0002-nachn,
usrid like pa0105-usrid,
usrid_long like pa0105-usrid_long,
end of it_final.
get pernr.
clear : p0000,p0002,p0105.
rp-provide-from-last p0000 space p_date p_date.
if p0000-stat2 = '3'.
v_pernr = pnppernr-low.
else.
reject.
endif.
*---Get employee pernr, First name ,Last name into final table
rp-provide-from-last p0002 space p_date p_date.
if pnp-sw-found = '1'.
it_final-pernr = p0002-pernr.
it_final-vorna = p0002-vorna.
it_final-nachn = p0002-nachn.
else.
*---Error message if not infotype 0002 maintained
T_ERROR-PERNR = pnppernr-low.
CONCATENATE TEXT-EMI '0002'
INTO T_ERROR-MESSAGE SEPARATED BY SPACE.
APPEND T_ERROR.
CLEAR T_ERROR.
endif.
**--Get SYSTEM USERNAME to final table
rp-provide-from-last p0105 0001 p_date p_date.
if pnp-sw-found = '1'.
it_final-usrid = p0105-usrid.
else.
*---Error message if not SYSTEM USERNAME maintained
T_ERROR-PERNR = pnppernr-low.
CONCATENATE TEXT-003 '0105'
INTO T_ERROR-MESSAGE SEPARATED BY SPACE.
APPEND T_ERROR.
CLEAR T_ERROR.
endif.
**--Get Email ID to final table
rp-provide-from-last p0105 0010 p_date p_date.
if pnp-sw-found = '1'.
it_final-usrid_long = p0105-usrid_long.
else.
*---Error message if not Email ID maintained
T_ERROR-PERNR = pnppernr-low.
CONCATENATE TEXT-004 '0105'
INTO T_ERROR-MESSAGE SEPARATED BY SPACE.
APPEND T_ERROR.
CLEAR T_ERROR.
endif.
append it_final.
clear it_final.
reward points if useful,
venkat. -
How to use a logical database's selection screen elements
Hi all,
I have used the logical db, pnp, in my report, however when I want to select data about a personel , ie. her name surname plans-positions, how will I join the two tables pa0001 and logical db? and the table t528t - text for plans?
Thanks.Hi Deniz,
First of all give Logical database PNP in program attributes(Goto->Attributes).
In program write the following code.
Infotypes : 0000,
0001.
start-of-selection.
get pernr.
rp-provide-from-last p0000 space pn-begda pn-endda.
if pnp-sw-found = '1'.
w_itab-pernr = p0001-pernr.
else.
reject.
endif.
rp-provide-from-last p0001 space pn-begda pn-endda.
if pnp-sw-found = '1'.
w_itab-vorna = p0001-plans.--->position
else.
reject.
endif.
rp-provide-from-last p0002 space pn-begda pn-endda.
if pnp-sw-found = '1'.
w_itab-vorna = p0002-vorna. -
>first name
w_itab-nachn = p0001-nachn.--->last name
else.
reject.
endif.
append w_itab to t_itab.
end-of-selection.
Dont forget to reward points if found useful.
Thanks,
Satyesh -
How to use OWN logical database
Hi all,
hope somebody can help me.
I copied a standard logical database (FPMF). The program which I use and have modified is also copied from standard.
How can I assure that the program use MY logical database instead of the SAP-One?
In my case I have some get statements. And these get statements all refer to FPMF and not to my copied database.
Do anybody what's the probelm?
Cheers
PhilipYes, I know. And I am not happy with this solution.
But I didn't see another way for my issue.
Thank you very much.
Philip -
How tuning memory in Logical database 10.2.0.2 in Unix server?
Hi
I need your help.
I have a logical database ver, 10.2.0.2, in a unix itanium with 16G in Ram.
Recently my database has issues because is not refresing the data that comes from the primary DB.
I have to flush the SGA memory and shutdown the database.
Also I decrese the max_servers from 27 to 18 and still fails.
My sga memory is 9G
How can I tuning the size of the SGA, shared pool etc for a better performance?
Or what else I need to review in order to have a better performance?
Thanks in advance for the help.
LoreinHello
That's the issue I don't receive any error just take long time to apply the archive files from the primary database.
This is a part of the alert file. Yesterday the file arch112366_1_652812906.arc start to be applied but for 5 hours didn't finish, but I didn't receive any error. The logical continued receiving the arch fiels from the primary but never finish loading this file. What I did was flush the SGA and shutdown the database , and decrease the max_servers. Then the database starts applying the files.
LOGMINER: End mining logfile: /oracle/pexp/arch/sarchive/arch112365_1_652812906.arc
Wed Feb 3 12:32:36 2010
RFS[2]: No standby redo logfiles created
RFS[2]: Archived Log: '/oracle/pexp/arch/sarchive/arch112366_1_652812906.arc'
Wed Feb 3 12:32:38 2010
RFS LogMiner: Registered logfile [oracle/pexp/arch/sarchive/arch112366_1_652812906.arc] to LogMiner session id [1]
Wed Feb 3 12:32:38 2010
LOGMINER: Begin mining logfile: /oracle/pexp/arch/sarchive/arch112366_1_652812906.arc
Wed Feb 3 12:32:40 2010
LSP0: rolling back apply server 4
LSP0: apply server 4 rolled back
Wed Feb 3 12:32:45 2010
Thread 1 advanced to log sequence 1026
Current log# 1 seq# 1026 mem# 0: /oradata/pexp/redoA/redo01.log
Current log# 1 seq# 1026 mem# 1: /oradata/pexp/mirrorredoA/redo01b.log
Wed Feb 3 12:32:46 2010
LOGMINER: Log Auto Delete - deleting: /oracle/pexp/arch/sarchive/arch112352_1_652812906.arc
Deleted file /oracle/pexp/arch/sarchive/arch112352_1_652812906.arc
Wed Feb 3 12:32:46 2010
LOGMINER: Log Auto Delete - deleting: /oracle/pexp/arch/sarchive/arch112353_1_652812906.arc
Deleted file /oracle/pexp/arch/sarchive/arch112353_1_652812906.arc
Wed Feb 3 12:32:46 2010
Regards -
How to find tables from database having no partition
Hello Sir,
How to find tables from oracle database having no partitions?
Thank you.
-Mal@SB,
SQL> SELECT OWNER, TABLE_NAME FROM DBA_TABLES
2 MINUS
3 SELECT OWNER, TABLE_NAME FROM DBA_TAB_PARTITIONS;
SELECT OWNER, TABLE_NAME FROM DBA_TAB_PARTITIONS
ERROR at line 3:
ORA-00904: "OWNER": invalid identifier@OP,
select table_name,partitioned from dba_tables where partitioned='YES';
select table_name,partitioned from dba_tables where partitioned='NO';
Regards
Girish Sharma
Edited by: Girish Sharma on Jul 1, 2011 9:27 AM -
windows
run ---services.msc
how to find database name,
path,
and home
thanks for helpIf you are on windows, you might just be able to sqlplus / as sysdba in a command window, since all that stuff is defined in the registry. If there is more than one db, this might be completely misleading. Checking the services under the manage option from right clicking on the My Computer might answer that. Searching the registry for oracle homes might answer it better. It all depends on the history of the 'puter, and how cluelessly it has been pounded upon.
-
How to defined which logical database to use in a function module?
Hey,
I am trying to do logical database in a function module. I need to know where do i go to define which logical database to use? Becuase i get syntax error on my Get statement. The logical database i am trying to use is HR PNP .
Any useful help will be appreciated,
ThanksI think we can't assign logical database to FM or FG. Because there isn't any option to put the logical database in the FM or FG's attributes.
You must have to create a executable report to have the LDB in use.
Regards,
Naimesh Patel -
How to find old mailbox database name
Hi,<o:p></o:p>
We are using Exchange server 2007, we recently moved one user from one database to another database. But we didn't notice source database name while
we move. After a week time user asking us to restore one month old data but now we didn't know were user was there earlier before moved to new database. Is there any way to find old mailbox database name for the particular user?<o:p></o:p>
Your help is really appreciated. Thanks<o:p></o:p>Try this friend:
Option1:
get-mailbox [email protected] | Get-MailboxStatistics -IncludeMoveHistory | ft DisplayName, MoveHistory
Option2:
If you have trouble use below to generate in csv to get old DB status of user:
$temp=Get-MailboxStatistics -Identity AylaKol -IncludeMoveReport
$temp.MoveHistory[0] | Export-CSV C:\MoveReport_AylaKol.csv
Option 3:
C:\>(Get-MailboxStatistics alan.reid -IncludeMoveHistory).MoveHistory | select CompletionTimestamp,SourceDatabase,TargetDatabase | ft -auto
CompletionTimestamp SourceDatabase TargetDatabase
14/07/2014 5:41:27 AM MB-HO-04 DB01
8/01/2014 11:35:55 AM MB-HO-03 MB-HO-04
11/09/2013 11:35:24 PM MB-HO-01 MB-HO-03 -
How to find out the database-size
Hello,
how can I find out the size of the database.
I created the user as below. I defined the size of the database to 2MB. Now I want to know how much is the size of the database.
CREATE USER oemer
IDENTIFIED BY ...
DEFAULT TABLESPACE system
QUOTA 2M ON system;Actually, since Omer is a veteran poster to the Forms and Reports forums, I doubt that. I think he is making a much more interesting journey: from front-end to back-end.
I'll be a bit more helpful this morning.
Databases are ways of organising disk space to store data. Fundamentally they consist of OS files, data files. The RDBMS handles by grouping them into tablespaces. When we build tables we assign them to a tablespace.
So, the size of the database is the sum of its datafiles. Of course, some tablespaces are used for sorting and holding undo information, so the size of the database for the purposes of persisting data is:
SELECT count(x.tablespace_name) AS total_TS, sum(x.MB) AS total_mb, sum(x.free_mb) AS total_free_mb
FROM ( SELECT t.tablespace_name, sum(d.bytes)/1048576 AS mb, sum(f.bytes)/1048576 AS free_mb
FROM dba_free_space f, dba_data_files d, dba_tablespaces t
WHERE t.contents = 'PERMANENT'
AND d.tablespace_name = t.tablespace_name
AND d.file_id = f.file_id
GROUP BY t.tablespace_name ) x
/The SYSTEM tablespace is special. It is used by Oracle to hold the data dictionary, the definitions of all the objects in the database. It should not be used for storing application objects (it affects the performance, apatrt from anything else). That is why we must not use it as a default tablespace.
CREATE USER oemer
IDENTIFIED BY ...
DEFAULT TABLESPACE ts_users
QUOTA 2M ON ts_users; Cheers, APC -
How to find SQL statement = Database Auditing
Dear All
I have configured Database Auditing on Oracle 9i Enterprise Edition Server
parameter init.ora file:
AUDIT_TRAIL = "DB"
I want to audit INSERT,UPDATE, DELETE STATEMENT on PRACTICE.EMP table
for which i did :
1) Logged in as SYS
SQL> AUDIT INSERT,UPDATE,DELETE
ON PRACTICE.EMP
BY ACCESS
WHENEVER SUCCESSFUL
Audit Succedded
2) Now I have to check the SQL statement that did insert update or delete operation using SYS.AUD$
3) There is SQLTEXT field , datatype is CLOB.
How should I check the SQL Statements that were fired on PRACTICE.EMP table
Kindly helpSQL> show user
USER is "SYS"
SQL> alter system set audit_trail = db,extended scope=spfile;
alter system set audit_trail = db,extended scope=spfile
ERROR at line 1:
ORA-32001: write to SPFILE requested but no SPFILE specified at startup
I have init.ora but no spifle so should I create SPFILE based on INIT.ORA and then give the command ?
As of now I am using V$SQL view to find all the commands executed on my database.
I found one good book "Oracle Security" OREILY PUBLICATION in which Auditing Database is discussed in good details.
Thank you so much for all your efforts
Maybe you are looking for
-
Using Facetime between iDevices sharing the same Apple ID
I want to set up my daughters' iPads using my own Apple ID so that we can all share the same apps, music, etc. but will we be able to have a conversation using Facetime?
-
EVP88 - How do I sync to the BPM?
Hi, I would like to sync an oscillating patch 'JP Uni Hipagroove' (EXS24) to the BPM of my song (all Logic loops). Do I have to manually figure this out? Is there some trick to it? I want to play this patch live over a beat at 110 BPM yet the timing
-
Hello, I'm working with a 3D bar graph I've connected a matrix on 3D Bar Datatype.lvclasslotHelper.vi. I've some problems with this graph: - aparently, each row of my matrix is considered as a data: with a 10x7 matrix, my graph has 10 different color
-
Auth Check Works NO ERROR Display
I have created a simple authorization system by following the 2day tutor example which works in that it prevents unauthorized access but what doesn't seem to work is a display of my error message coded on the same authorization screen. Any Ideas? al
-
im stilling learning how to properly implement methods into Java programs, but im currently working on this program here but am having trouble implementing the method DBGen into the class DBPRoject (the switch statement in main is a program menu, but