Query for items on hold and items that are inactive for past 18 months.
Hi Experts,
We are on the process of initializing a new database due to database size, our client requested that we extract items from the current live database but only those items that are not On Hold and has been active for past 18 months. Those items that does not have transaction for the past 18months and currently on hold will be dropped. What will be the query to extract based on this filter? Please help. Thank you.
Regards
Hi,
You may try this first:
Select t0.itemcode, t0.itemname, t0.onhand
from dbo.oitm t0
where t0.itemcode not in
(select distinct itemcode from dbo.oinm where DateDiff(DD,DocDate,GetDate()) < 548 group by itemcode)
and t0.InvntItem = 'Y' and t0.Frozenfor = 'Y'
Thanks,
Gordon
Similar Messages
-
Query to find the Views and synonyms that are accessing through db_link
HI all,
Oracle 10g
I need a Query to find the Views and synonyms that are accessing through db_link.
ie.
database A have the db_link to database B through a schema A
now i need to find what are the Synonyms and views that are accessing through db_link either directly or indirectly..
regards,
Deepak
Edited by: Deepak_DBA on Dec 10, 2010 5:38 PMOn the second database (B) use this query to find the SQL which used by the schema A (DB LINK USER). Check the SQL_FULLTEXT column.
select sql_fulltext,sql_id,module,parsing_schema_name,parsing_user_id,first_load_time,loads,users_executing,rows_processed,plsql_exec_time,sorts,fetches,invalidations,parse_calls,cpu_time,elapsed_time,disk_reads,buffer_gets
from V$sqlarea
where parsing_schema_name = 'A' --and to_char(first_load_time,'dd/mm/yyyy') like '%11/08/2007'
order by first_load_time desc;
Regards
Asif Kabir -
DTW for exporting business partners and Items
Hi all,
Can any one tell me how to work on DTW for exporting business partners and Items. groups,subgroups and properties feilds are required, iam on pl5
thanks in advance
regards,
kumarHi Kumar
For details on the format for the DTW go to your SDK installation folder for SAP Business One. You will find a Help folder and select the file REFDI.CHM
This file will give you help on the DI API which are the rules applied to the DTW as well. Under contents click on the plus next to objects. This will list all the objects (templates in DTW) available. Select an object and look at the members. There is a detailed explanation next to each member that will tell you whether or not it is mandatory and what the SAP field name is in brackets. If you click on a member name it will display more details on that member and under Syntax if you select the member name that is underlined, it will give you a list of options if applicable for that field. For example when clicking on CardType you will see the options are cCustomer, cSupplier and cLid.
Hope this helps
Kind regards
Peter Juby -
I recently created a new folder on my MacBook, dragged some items into it, and found that the entire contents of my desktop appeared to be in the folder as well. This happens every time I make a new folder. Any suggestions?
Csound1 What Ive been trying to explain is that I have been running bootcamp, I open the app where the first screen is the introduction, i hit continue, the first time I select "download the latest windows support software fromm Apple" then I return and instead select "Install Windows 7." Then hit continue. The third screen is where I "Create a Partition for Windows" I set Windows to 80 gigs then hit INSTALL. As stated before Bootcamp cannot find the install drivers saying "The installer disc could not be found." My windows software is on a USB drive not a disc, I tried using a virtual disc reader to make it appear that the windows software was running on a disc, still no luck. What I would like to know is how to install windows on bootcamp.
-
How do you remove items from the assets panel that are duplicated?
How do you remove items from the assets panel that are duplicated?
If you add an item to a slideshow, you'll usually see 2 entries for that image in the assets panel - one represents the thumbnail, and the other represents the larger 'hero' image.
It sounds like you may have added the same image to your slideshow twice. You can select one of the hero images or thumbnail images in your slideshow and use the delete key to remove it. Then the extra 2 entries in the assets panel should disappear. -
I have downloaded an update for my ipod 4th, and after that all my songs, pictures and apps have been erased, Is there some way to recover all my information without have done a security copy?
I supsect you did the update on other than your syncing computer. If yu did the app, music and synced photo will not be on the iPod after the update since those items are not in the backup that iTunes makes. See:
iOS 5: Updating your device to iOS 5
The above applies to all updates performedvia USB on a computer. To get stuff back, restore from backup on the syncing computer.
The above in my educated guess since you provided litle information about how you did the update.
You can redownload many iTunes purchases by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store -
even do i use the same apple id and password that i use for itunes.
Hi peacegraffiti,
Thank you for using Apple Support Communities.
I understand you are having difficulties restoring your new iPhone from a previous iCloud backup. The following article provides information to help restore from an iCloud backup.
Get help restoring from an iCloud backup - Apple Support
Cheers,
Jeff D. -
Dear wise & wondeful people:
How can I get missing contacts, notes, calendar dates and reminders that are just on my old iphone onto the iCloud for transfer to my new iPhone upgrade? Half of my contacts, notes, ect. were on my iCloud so have happily moved to my new iPhone but the rest are completely resistant. For example, on my iCloud I have 14 missing contacts starting with the letter A alone, however they are happily viewable on my old iPhone 4S and won't budge over into the iCloud.
There are also 3 notes missing yet still acessible on my onld iPhone 4S, the list goes on.
Your help would be most appreciated. Thank you so much.
BCHRHi BCHR,
If you are having issues transfering your content from your old iPhone onto iCloud so it can be transfered to your new iPhone, you may find the following articles helpful:
iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device
http://support.apple.com/kb/HT2109
iCloud: Troubleshooting iCloud Contacts
http://support.apple.com/kb/TS3998
iCloud: Troubleshooting iCloud Calendar
http://support.apple.com/kb/TS3999
iCloud: Notes overview
http://support.apple.com/kb/PH12081
Regards,
- Brenden -
Hi All,
I am trying to execute the below code as provided from one of the blogs. i am able to run the job only once based on a file watcher object(i.e. for very first time) and after that the job is not running at all and if i schedule the job to run automatically based on interval of 10 or more minutes it is executing properly). Please let me know or guide me if i have missed any step or configuration.that is needed.
Version of Oracle 11.2.0.1.0
OS : Windows 7 Prof
Given all the necessary privileges
BEGIN
DBMS_SCHEDULER.CREATE_CREDENTIAL(
credential_name => 'cred',
username => 'XXXX',
password => 'XXXX');
END;
CREATE TABLE ZZZZ (WHEN timestamp, file_name varchar2(100),
file_size number, processed char(1));
CREATE OR REPLACE PROCEDURE YYYY
(payload IN sys.scheduler_filewatcher_result) AS
BEGIN
INSERT INTO ZZZZ VALUES
(payload.file_timestamp,
payload.directory_path || '/' || payload.actual_file_name,
payload.file_size,
'N');
END;
BEGIN
DBMS_SCHEDULER.CREATE_PROGRAM(
program_name => 'prog1',
program_type => 'stored_procedure',
program_action => 'YYYY',
number_of_arguments => 1,
enabled => FALSE);
DBMS_SCHEDULER.DEFINE_METADATA_ARGUMENT(
program_name => 'prog1',
metadata_attribute => 'event_message',
argument_position => 1);
DBMS_SCHEDULER.ENABLE('prog1');
END;
BEGIN
DBMS_SCHEDULER.CREATE_FILE_WATCHER(
file_watcher_name => 'file_watcher1',
directory_path => 'D:\AAAA',
file_name => '*.txt',
credential_name => 'cred',
destination => NULL,
enabled => FALSE);
END;
BEGIN
DBMS_SCHEDULER.CREATE_JOB(
job_name => 'job1',
program_name => 'prog1',
queue_spec => 'file_watcher1',
auto_drop => FALSE,
enabled => FALSE);
DBMS_SCHEDULER.SET_ATTRIBUTE('job1','PARALLEL_INSTANCES',TRUE);
END;
EXEC DBMS_SCHEDULER.ENABLE('file_watcher1,job1');
Regards,
kumar.Please post a copy and paste of a complete run of a test case, similar to what I have shown below.
SCOTT@orcl12c> SELECT banner FROM v$version
2 /
BANNER
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
PL/SQL Release 12.1.0.1.0 - Production
CORE 12.1.0.1.0 Production
TNS for 64-bit Windows: Version 12.1.0.1.0 - Production
NLSRTL Version 12.1.0.1.0 - Production
5 rows selected.
SCOTT@orcl12c> CONN / AS SYSDBA
Connected.
SYS@orcl12c> -- set file watcher interval to one minute:
SYS@orcl12c> BEGIN
2 DBMS_SCHEDULER.SET_ATTRIBUTE
3 ('file_watcher_schedule',
4 'repeat_interval',
5 'freq=minutely; interval=1');
6 END;
7 /
PL/SQL procedure successfully completed.
SYS@orcl12c> CONNECT scott/tiger
Connected.
SCOTT@orcl12c> BEGIN
2 -- create credential using operating system user and password (fill in your own):
3 DBMS_SCHEDULER.CREATE_CREDENTIAL
4 (credential_name => 'cred',
5 username => '...',
6 password => '...');
7 END;
8 /
PL/SQL procedure successfully completed.
SCOTT@orcl12c> -- create table to insert results into:
SCOTT@orcl12c> CREATE TABLE ZZZZ
2 (WHEN timestamp,
3 file_name varchar2(100),
4 file_size number,
5 processed char(1))
6 /
Table created.
SCOTT@orcl12c> -- create procedure to insert results:
SCOTT@orcl12c> CREATE OR REPLACE PROCEDURE YYYY
2 (payload IN sys.scheduler_filewatcher_result)
3 AS
4 BEGIN
5 INSERT INTO ZZZZ VALUES
6 (payload.file_timestamp,
7 payload.directory_path || '/' || payload.actual_file_name,
8 payload.file_size,
9 'N');
10 END;
11 /
Procedure created.
SCOTT@orcl12c> -- create program, define metadata, and enable:
SCOTT@orcl12c> BEGIN
2 DBMS_SCHEDULER.CREATE_PROGRAM
3 (program_name => 'prog1',
4 program_type => 'stored_procedure',
5 program_action => 'YYYY',
6 number_of_arguments => 1,
7 enabled => FALSE);
8 DBMS_SCHEDULER.DEFINE_METADATA_ARGUMENT(
9 program_name => 'prog1',
10 metadata_attribute => 'event_message',
11 argument_position => 1);
12 DBMS_SCHEDULER.ENABLE ('prog1');
13 END;
14 /
PL/SQL procedure successfully completed.
SCOTT@orcl12c> BEGIN
2 -- create file watcher:
3 DBMS_SCHEDULER.CREATE_FILE_WATCHER
4 (file_watcher_name => 'file_watcher1',
5 directory_path => 'c:\my_oracle_files',
6 file_name => 'f*.txt',
7 credential_name => 'cred',
8 destination => NULL,
9 enabled => FALSE);
10 END;
11 /
PL/SQL procedure successfully completed.
SCOTT@orcl12c> BEGIN
2 -- create job:
3 DBMS_SCHEDULER.CREATE_JOB
4 (job_name => 'job1',
5 program_name => 'prog1',
6 queue_spec => 'file_watcher1',
7 auto_drop => FALSE,
8 enabled => FALSE);
9 -- set attributes:
10 DBMS_SCHEDULER.SET_ATTRIBUTE ('job1', 'PARALLEL_INSTANCES', TRUE);
11 END;
12 /
PL/SQL procedure successfully completed.
SCOTT@orcl12c> -- enable:
SCOTT@orcl12c> EXEC DBMS_SCHEDULER.enable ('file_watcher1, job1');
PL/SQL procedure successfully completed.
SCOTT@orcl12c> -- write file (file must not exist previously):
SCOTT@orcl12c> CREATE OR REPLACE DIRECTORY upncommon_dir AS 'c:\my_oracle_files'
2 /
Directory created.
SCOTT@orcl12c> declare
2 filtyp utl_file.file_type;
3 begin
4 filtyp := utl_file.fopen ('UPNCOMMON_DIR', 'file1.txt', 'W', NULL);
5 utl_file.put_line (filtyp, 'File has arrived ' || SYSTIMESTAMP, TRUE);
6 utl_file.fclose (filtyp);
7 end;
8 /
PL/SQL procedure successfully completed.
SCOTT@orcl12c> -- wait long enough (may take more than one minute) for job to run:
SCOTT@orcl12c> EXEC DBMS_LOCK.SLEEP (100)
PL/SQL procedure successfully completed.
SCOTT@orcl12c> -- check for results:
SCOTT@orcl12c> SELECT * FROM zzzz
2 /
WHEN
FILE_NAME
FILE_SIZE P
22-OCT-13 10.12.28.309000 PM
c:\my_oracle_files/file1.txt
57 N
1 row selected.
SCOTT@orcl12c> declare
2 filtyp utl_file.file_type;
3 begin
4 filtyp := utl_file.fopen ('UPNCOMMON_DIR', 'file2.txt', 'W', NULL);
5 utl_file.put_line (filtyp, 'File has arrived ' || SYSTIMESTAMP, TRUE);
6 utl_file.fclose (filtyp);
7 end;
8 /
PL/SQL procedure successfully completed.
SCOTT@orcl12c> -- wait long enough (may take more than one minute) for job to run:
SCOTT@orcl12c> EXEC DBMS_LOCK.SLEEP (100)
PL/SQL procedure successfully completed.
SCOTT@orcl12c> -- check for results:
SCOTT@orcl12c> SELECT * FROM zzzz
2 /
WHEN
FILE_NAME
FILE_SIZE P
22-OCT-13 10.12.28.309000 PM
c:\my_oracle_files/file1.txt
57 N
22-OCT-13 10.14.08.580000 PM
c:\my_oracle_files/file2.txt
57 N
2 rows selected. -
Firefox automatically loaded a new version recently. The new version does not shut down when I close the browser it continues running in the background. In addition it opens Adobe Reader for a brief time and then that closes. Everything worked fine before this new version.
See "Hang at exit":
* http://kb.mozillazine.org/Firefox_hangs
* https://support.mozilla.com/kb/Firefox+hangs -
Hi All,
We have set up a new Operating Unit in Oracle Apps. Now when I am trying to create a new Customer in that Operating Unit, I am receiving following error:
ERROR MESSAGE:-Please set the Receivables system options for this operating unit and ensure that the MO: Operating Unit profile option is correctly set with an operating unit that is set up in Receivables.
We do have MO: Operating Unit and MO: Default Operating Unit set properly at Responsibility level for the Responsibility through which I am accessing this form.
Your help is appreciated!
Thanks in advance,
SKAYou can refer this thread and check your MO operating unit is set or not https://community.oracle.com/message/3937028 thanks
-
Not really a problem just would like to know if I install firefox 4 beta...will I lose my bookmarks already in my current firefox browers and is that the same for the farmville game bar from facebook
It should not be a problem, as long as you are careful. Note the delete settings option when uninstalling firefox will delete bookmarks etc for ALL installed versions of firefox.
Firefox attempts to retain the profile information, that include bookmarks etc when updating. It may still be prudent to consider other backup methods not entirely dependent on firefox.
The firefox 4 beta will install by default in a slightly different location, you are then able to run either the current or the beta version of firefox. It is recommended you set up a new profile for the new version of firefox. see
* [[managing profiles]]
*[http://kb.mozillazine.org/Testing_pre-release_versions] -
When I was ready to place the order for my iPhoto book, I realized that it was for a soft cover book and I wanted hard cover. How can I change this without losing my prepared book?
Duplicate your book and try to change the theme in the copy. Chnaging the theme may change the layout of your text fileds. That is why you need the copy to be able to compare the pages before and after.
Ctrl-click the book in the Source list and select "Duplicate".
Click the "Change Theme" button in the upper right corner of the Book pane, make sure, you have the same theme selected and the same size. Click Hardcover. -
Hello .. I've been subscribed for ic;oud for 20$ per year and I found it useless for many reasons: that I can not disconnect my mobile while the uploading process and it takes long time for uploading my data .. Its not a reliable system that's why I need to deactivate the space service and take my money back .. Thanks
The "issues" you've raised are nothing to do with the iCloud service.
No service that uploads data allows you to disconnect the device you are uploading from while uploading data. Doing so would prevent the upload from completing. It is a basic requirement for any uploading service that you remain connected to it for uploading to be possible.
The time it takes to upload data to iCloud is entirely dependent on how fast your Internet connection is, and how much data you are uploading. Both of these things are completely out of Apple's control. Whichever upload service you use will be affected by the speed of your Internet connection. -
Already signed in on ebay; then I go to either revise my item or sell and item, ebay will ask you to sign in again; using Firefox, the same screen keeps coming up, asking me to sign in. I then have to use IE . Deleting history does not help.
# Yes, if you go to accounts.firefox.org, sign out, you will now be signed out.
# Sign back in, and you will be asked to save the password you entered.
# This will save the password and autocomplete if you have this option turned on.
I am not exactly sure why the menu did not detect the password change or if it was stored incorrectly after you changed it? But after storing the correct password you can manage any duplicate passwords in the password manager.[[Password manager - Remember, delete and change saved passwords in Firefox]]
Maybe you are looking for
-
Problem with voice comand fedback audio
after downloading latest z10 update the feedback volume is so low I can barely here it. all other volume is fine. any way to increase the volume of the feed back voice. thanks.
-
Help changing AS3 -- AS2 please
I was following a tutorial in AS3 with a MouseEvent but really want to use it in AS2. There is an Input Text box named boxOne that a user enters their name You click on myButton and in then in boxTwo should appear the test "Welcome to our class" and
-
Hi all, Does anybody have a doc on creation of daytype rules and can share Thanks in advance Raghu
-
Mac mini i5 2.5 + LCD Liyama x2775hds no signal after shutdown
mac mini i5 2.5 + LCD Liyama x2775hds no signal after shutdown plaese help guys
-
HT201401 i am unable to turn on wifi and bluetooth
I am unable to turn on wifi and bluetooth.