Package help

I need to be able to invoke a procedure (debit_account/credit_account) from the pkg body procedure process_transactions. I am getting "Debit_account" no declared in this scope".
Package specs
create or replace package bank_transactions
is
minimum_balance number(3,2) := 100.00;
procedure enter_transaction
account_number_in in transactions.account_no%type,
transact_type_in in transactions.type%type,
amt_transact_in in transactions.amount%type
procedure process_transactions;
end;
pkg body
create or replace package body bank_transactions2 is
-- Private type declarations
--type <TypeName> is <Datatype>;
-- Private constant declarations
--<ConstantName> constant <Datatype> := <Value>;
-- Private variable declarations
new_status varchar2(70);
-- Function and procedure implementations
function <FunctionName>(<Parameter> <Datatype>) return <Datatype> is
<LocalVariable> <Datatype>;
begin
<Statement>;
return(<Result>);
end;
procedure enter_transaction
account_number_in in transactions.account_no%type,
transact_type_in in transactions.type%type,
amt_transact_in in transactions.amount%type
is
begin
insert into transactions (account_no,type,amount,time_tag)
values
(account_number_in,transact_type_in,amt_transact_in,sysdate);
end enter_transaction;
procedure process_transactions(
trans_type in out varchar2,
account_no transactions.account_no%type,
amount transactions.amount%type)
is
cursor trans_cursor(trans_type in varchar2) is
select status
from transactions
where status = 'Pending'
for update nowait;
begin
for trans in trans_cursor(trans_type)
loop
process_transactions(trans_type,account_no,amount);
end loop;
if trans_type = 'D' then debit_account(account_no,amount);
elsif trans_type = 'C' then credit_account(account_no,amount);
elsif trans_type != 'D' OR 'C' then new_status := 'Rejected';
end if;
end process_transactions;
procedure credit_account
(account_number_in in transactions.account_no%type,
amt_trans_in in transactions.amount%type)
is
begin
update transactions set amount = amount + amt_trans_in
where account_no = account_number_in;
end credit_account;
procedure debit_account
(account_no_in transactions.account_no%type,amt_trans_in in transactions.amount%type)
is
begin
update transactions set amount = amount + amt_trans_in
where account_no = account_no_in;
end debit_account;
end bank_transactions2;
/

Well, probably having a parameterless procedure defined in the spec and overloading it with a version with parameters would be a bit odd. How is the parameterless version supposed to know how to generate the parameters for the paramteterized version?
Overloading itself is can be a good practice if it is used appropriately. Many of the Oracle built-in functions like TO_CHAR, NVL etc, are overloaded to take parameters of different types. Personally, when I use overloaded procedures, I tend to expose them in the package spec, because they do the same thing with slightly different parameters.
For example, in one aplpication we have a table that can be uniquely accessed by one of two fields (one numeric and the other varchar2). The front-end will always have one of those two fields, depending on where it got the basic information it is using. So, I have two versions of the function defined in the package spec as:
FUNCTION get_concept(p_concept_id IN NUMBER) RETURN concept_tp;
FUNCTION get_concept(p_name IN VARCHAR2) RETURN concept_tp;The front-end knows which of the two identifiers it has, so can call the appropriate version of the funtion. In the database, a "concept" is actually a join between several tables, and both versions of the function, after doing a little set up work, call another private function get_concept_int which actually takes 3 parameters. I could have called the internal function get_concept as well, but the overloading here would, at least to me, be misleading.
HTH
John

Similar Messages

  • Meric -- Another package helper (packer fork)

    Hi. Here is Meric. I have made modifications to famous and well written "packer" (thanks to Matthew Bruenig) to fit my needs. So a packer fork "Meric" has born. I decided to share it with community. But remember, i am neither a coder nor a bash expert. So, my modifications may be an ugly hack to packer; but it just works for me. I hope you'll enjoy it. All credits must go Mr. Bruening.
    From Meric README:
    Meric is a package helper for Arch Linux. It can retrieve packages from official repositories and Arch User Repository (a.k.a. AUR).
    Meric is a fork of famous "packer" which is developed by Matthew Bruenig <[email protected]>
    Meric is born from the needs of the autor.
    Meric has a few differences from packer:
      1- Meric has a config file. Users may use it for daily meric tasks instead of using options in commandline. Also makepkg options can be set there. Once options have been set; meric can call makepkg with these options by default.
    2- Meric has the ability of remove installed dependencies after package creation. Like "makepkg -r". Not perfect but it works for my needs.
    3- Meric can skip checking and installing from specified repositories with "--skip-repo" option. This is useful when you setup your custom repository with AUR packages. Aur helpers, including packer, won't treat those packages as aur packages because it thouhgt that they came from a repo (your custom repo). So those packages always skipped when AUR updates checking phase. This option prevents this for you.( also can be set in meric.conf to make it default behaviour)
    4- Meric can use translations. For the sake of keep package and its dependencies minimal; only one text file (in bash script format) is used to hold and provide all translations. See TRANSLATIONS section.
    5- Meric can call pacman with a custom pacman.conf file for all pacman related operations. Just place your custom pacman.conf under $HOME/.config/meric/ directory.
    Github link: https://github.com/tarakbumba/meric
    Aur link: https://aur.archlinux.org/packages.php?ID=59946

    fschiff wrote:
    471,475c604,611
    < '--auronly') auronly='1' ;;
    < '--devel') devel='1' ;;
    < '--skipinteg') MAKEPKGOPTS="--skipinteg" ;;
    < '--') shift ; packageargs+=("$@") ; break ;;
    < -*) echo "packer: Option \`$1' is not valid." ; exit 5 ;;
    > '-a'|'--auronly') auronly='1' ;;
    > '--devel') devel='1' ;;
    > '--skipinteg') MAKEPKGOPTS+=("--skipinteg") ;;
    > '--cleandeps'| '-c') cleandeps='1' ;;
    > '--version'| '-v') echo -n "Meric - $VERSION" ;;
    > '--skip-repo') skipped_repos="$2" ; skip_repo='1' ; shift ;;
    > '--') shift ; packageargs+=("$@") ; break ;;
    > -*) echo -e "${COLOR7}$ERROR :$ENDCOLOR $ERROR9" ; exit 5 ;;
    MAKEPKGOPTS= is different.  Possible bug?
    Its the only place where the variable gets set.
    234c322
    < echo "${PKGURL}$(jshon -Q -e results -e URLPath -u < "$tmpdir/$1.info")"
    > echo "${PKGURL}$(jshon -e results -e URLPath -u < "$tmpdir/$1.info")"
    -Q option
    Thank you for interesting in. MAKEPKGOPTS is indeed different and it is not a bug but a feature to allow use of Makepkg options from meric.conf
    But you' re right. Somehow i missed -Q option in pkglink function. Will update git with this. Thanks for your feedback!

  • Stored Proc's/Packages Help

    Ok all, again, being new to Oracle and trying to do a humble favor for a friend, I've come up with a problem that I'll need help on. Running these steps individually gets me pretty much the result that I'm looking for, minus some basic retooling with TSQL. However, I've tried to format this in the form of either a package/procedure and I just don't believe I'm doing it right. I've been reading the PL-SQL for Dummies, in addition to the latest Oracle 10G PDFs, but as much as I try, I just can't format the package right, even using v_ types and declaring. Below is the code, and even though I've listed tables, this has to be done dynamically and/or processed in memory. I know this may seem simple at best to those of you who understand Oracle, but to me, it's like a square peg in a round hole.
    Would appreciate any and all comments and assistance. Thank you kindly for your perusal of this post (code below):
    --STEP 1:
    create table tbl1 as
    SELECT ps.id1
    ,ps.id2
    ,ps.tdate
    ,NVL(ps.udate, SYSDATE + 1 )
    ,ps.tcode
    ,decode (y.nmtext,
    'name1', 'nm1',
    'name2', 'nm2',
    'name3','nm3',
    'name4','nm4',
    'name5','nm5',
    'name6','nm6',
    'name7','nm7',
    'name8','nm8')
    ,(SELECT COUNT(ps2.id1)
    FROM tblhere ps2
    WHERE ps2.id1 = ps.id1
    AND ps2.id2 = ps.id2
    AND ps2.tdate <= TO_DATE('03/01/2007 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    AND NVL(ps2.udate, SYSDATE + 1) >= TO_DATE('02/01/2007 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    GROUP BY ps2.id2) AS o_cnt
    ,(SELECT COUNT(ps3.id1)
    FROM tblhere ps3
    WHERE ps3.id1 = ps.id1
    AND ps3.tcode = ps.tcode
    AND ps3.tdate <= TO_DATE('03/01/2007 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    AND NVL(ps3.udate, SYSDATE + 1) >= TO_DATE('02/01/2007 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    GROUP BY ps3.tcode) AS a_cnt
    ,y.ntype as ntype
    FROM tblhere ps
    INNER JOIN tblz y
    ON ps.id2 = y.thisid
    WHERE ps.tdate <= TO_DATE('03/01/2007 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    AND NVL(ps.udate, SYSDATE + 1 ) >= TO_DATE('02/01/2007 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    AND tcode = 'placedhere'
    AND y.ntype='testing'
    order by id1, tdate
    --STEP 2:
    create table overages (
    Mynum number,
    MyID number)
    --STEP 3:
    insert into overages
    select count(*) as Mynum, id1
    from tbl1
    group by id1
    having count(id1) > 1
    order by id1 desc
    --STEP 4:
    create table tbl2 (
    nums number,
    cid number,
    ogid number,
    adate date,
    rdate date,
    timer number,
    mymode varchar2(10 Byte),
    place varchar2(50 Byte),
    og_cnt number,
    mymode_cnt number,
    namer varchar2(1 Byte))
    --STEP 5:
    insert into tbl2
    select b.mynum, a.id1, a.id2,
    a.tdate, NVL(a.udate, SYSDATE + 1),
    a.tcode, a.nmtext, a.o_cnt,
    a.a_cnt, a.ntype
    from tbl1 a
    inner join overages b
    on a.id1 = b.myid
    order by cid, adate
    --STEP 6:
    merge into tbl2 a
    using (select rwd,
    cid,
    ogid,
    min(rwd) over (partition by cid, adate, rdate) rwd_min,
    adate,
    rdate,
    mymode, place,
    from (select cid, rowid rwd,
    last_value(d1 ignore nulls) over (partition by cid order by rdate range between unbounded preceding and current row) as adate,
    first_value(d2 ignore nulls) over (partition by cid order by rdate range between current row and unbounded following) as rdate
    from (select cid,
    adate,
    rdate,
    case when abs(adate-lag(rdate) over (partition by cid order by rdate))<=1
    then null else adate end d1,
    case when abs(rdate-lead(adate) over (partition by cid order by rdate))<=1
    then null else rdate end d2
    from tbl2))) b
    on (a.rowid=b.rwd)
    when matched then update set a.adate=b.adate, a.rdate=b.rdate
    delete where b.rwd!=b.rwd_min;

    In general you should create the empty tables first as an installation step. Then in your PL/SQL code you would just do inserts, updates etc.
    Also, a package is defined in two parts:
    CREATE OR REPLACE PACKAGE whatever
    AS
        PROCEDURE p
            ( p_someparam INTEGER );
        FUNCTION q
            RETURN BOOLEAN;
    END whatever;
    CREATE OR REPLACE PACKAGE BODY whatever
    AS
        PROCEDURE p
            ( p_someparam INTEGER )
        IS
        BEGIN
            dbms_output.put_line('Hello, World');
        END p;
        FUNCTION q
            RETURN BOOLEAN
        IS
        BEGIN
            RETURN dbms_random.value(0,10) < 5;
        END q;
    END whatever;
    /

  • ITunes and Windows Installer Package - HELP!!!!

    I've seen my question, which is also MY problem, that Windows Installer Package will not allow ITunes to download. I've read several posts on possible "fixes" in several forums, and have yet to resolve my problem. Anyone know how I can fix this? I would REALLY appreciate the help.

    it says there is a problem with this windows installer package, a DLL required could not be run
    With that one, even though you're getting a different error message, try the procedure from the following user tip:
    "The administrator has set policies to prevent this installation" error messages when installing iTunes for Windows on Windows Vista and Windows 7 systems

  • BT can't find my broadband package - Help/advice n...

    Hello
    So glad I found this forum – I'm in need of some help before I go mad!
    I have been a BT internet customer for nearly 10 years.
    The trouble started at the end of July when I tried to add BT sport free (I have Sky). I couldn't do it online, so I went on online chat and they said I didn't have a broadband account with them. After an hour of me trying to convince them that I am a customer, they finally said they couldn't help me other than to suggest I talk to sales to add broadband to my account – I already have BT broadband!
    I then emailed the residential customer services team via the complaints route to express my dismay at the poor treatment of a long-term loyal customer and to request that they intervene and sort the situation out for me.
    They repeated that I only have landline showing with them and asked whether I had another account number. My internet has always been billed separately to my phone account, but looking through all my documents I couldn't see that I'd ever had an account number for my internet service.
    I discovered when I looked at my account in BT Yahoo email, that I was still on the BT Yahoo Anytime Plus service, but there was no account number to be seen anywhere. Like many people on this forum I received occasional emails from BT at the end of 2011 saying that I would be transferred to BT Total Broadband Option 1 at some point, but this obviously never happened.
    On reading this forum I discovered that there are a number of people like me who have 'unaligned' accounts where they're still on an old service that is billed separately and not linked to their MyBT account. I also read on this forum that someone had managed to find their separate internet account number by checking their bank statement direct debit info. I did this and managed to find an account number (starting GB followed by 8 numbers) but I've tried to use it online myself and it isn't recognised, so I've emailed the residential services team with this number.
    They haven't replied to me yet – it's well past the 72 hours they're supposed to reply in – and I've got a strong feeling they're just going to say they can't find the account number on their system. If they reply at all.
    Interestingly, I went onto my BT Yahoo email account page today and my internet product had changed from BT Yahoo Anytime Plus to BT Total Broadband Option 1.
    Now, I don't know if my message has triggered some action at BT's end, but if it has they haven't told me. My big concern now is that my BT Yahoo Anytime Plus was unlimited with no contract and it now looks like I've been moved to a product with a tiny 10GB limit. I run an online business so I'm rarely offline and I'd exceed my limit within a few days. I'm worried that I'm already exceeding my usage, and if I hadn't looked I wouldn't even know I'd been moved.
    All I want is for BT to recognise and merge my accounts, and then I can upgrade to an unlimited package (which will cost less than what I'm paying now anyway). And then I can also add BT Sport, to which I'm entitled and not able to get because BT's systems are rubbish.
    I'd thought about simply cancelling my existing direct debit and ordering a new broadband package, but I really need to keep my email address as I've had it for years and I use it for business.
    I've seen that there are lovely mods on this forum who can help, so I'm hoping one can come to my rescue before I pull all my hair out – I've got nowhere so far and it's been more than 6 weeks since my intial contact with BT.
    Apologies for the length of this message!
    Many Thanks,
    Justine
    Solved!
    Go to Solution.

    Hello again
    Can anybody tell me how long it normally takes for the mods to reply to a contact form please?  I submitted an enquiry via RobbieMacs's profile link on 18 September and have not yet received a reply or acknowledgement.  Does it normally take a few days to hear back from them?
    My problem has also worsened.  As I mentioned above, someone has been tinkering with my account because last week I was moved without warning from BT Yahoo Anytime plus service to BT Total Broadband Option 1, without being informed.  Then on Friday I received a 'Welcome to BT Broadband' email (I've had BT Broadband for nearly 10 years!), and last night I for the first time ever in nearly 10 years I received a usage warning.
    So, not only has my account been moved without telling me, but I've been moved from an unlimited service to a capped service (for the same price) and I'm close to reaching my limiit after a few days usage.
    But, despite the behind-the-scenes tinkering, my internet product still hasn't been merged with MyBT account so I cannot access it online to upgrade to an unlimited package, and I cannot call them as they will just tell me they have no record of me having broadband with them (I've been told this too many times over the last few weeks and it drives me crazy everytime - it's as if they think I'm making it up!).
    I'm so close to jumping ship to Virgin, and I think if I start incurring extra usage charges because I've been moved on to a product I currently have no control over, it may well be the last straw!
    Thanks,
    Justine

  • DBMS_CRYPTO package help needed :(

    Hello all,
    I want to use Oracle's DBMS_CRYPTO package for decrypting some data.
    I have one sample program as follows which is not working....the error is shown below.
    SQL> DECLARE
    2 input_string VARCHAR2 (200) := 'Secret Message';
    3 output_string VARCHAR2 (200);
    4 encrypted_raw RAW (2000); -- stores encrypted binary text
    5 decrypted_raw RAW (2000); -- stores decrypted binary text
    6 num_key_bytes NUMBER := 256/8; -- key length 256 bits (32 bytes)
    7 key_bytes_raw RAW (32); -- stores 256-bit encryption key
    8 encryption_type PLS_INTEGER := -- total encryption type
    9 DBMS_CRYPTO.ENCRYPT_AES256
    10 + DBMS_CRYPTO.CHAIN_CBC
    11 + DBMS_CRYPTO.PAD_PKCS5;
    12 BEGIN
    13 DBMS_OUTPUT.PUT_LINE ( 'Original string: ' || input_string);
    14 key_bytes_raw := DBMS_CRYPTO.RANDOMBYTES (num_key_bytes);
    15 encrypted_raw := DBMS_CRYPTO.ENCRYPT
    16 (
    17 src => UTL_I18N.STRING_TO_RAW (input_string, 'AL32UTF8'),
    18 typ => encryption_type,
    19 KEY => key_bytes_raw
    20 );
    21 decrypted_raw := DBMS_CRYPTO.DECRYPT
    22 (
    23 src => encrypted_raw,
    24 typ => encryption_type,
    25 KEY => key_bytes_raw
    26 );
    27 output_string := UTL_I18N.RAW_TO_CHAR (decrypted_raw, 'AL32UTF8');
    28 DBMS_OUTPUT.PUT_LINE ('Decrypted string: ' || output_string);
    29 END;
    30 /
    DBMS_CRYPTO.ENCRYPT_AES256
    ERROR at line 9:
    ORA-06550: line 9, column 2:
    PLS-00201: identifier 'DBMS_CRYPTO' must be declared
    ORA-06550: line 8, column 23:
    PL/SQL: Item ignored
    ORA-06550: line 14, column 21:
    PLS-00201: identifier 'DBMS_CRYPTO' must be declared
    ORA-06550: line 14, column 4:
    PL/SQL: Statement ignored
    ORA-06550: line 15, column 21:
    PLS-00201: identifier 'DBMS_CRYPTO' must be declared
    ORA-06550: line 15, column 4:
    PL/SQL: Statement ignored
    ORA-06550: line 21, column 18:
    PLS-00201: identifier 'DBMS_CRYPTO' must be declared
    ORA-06550: line 21, column 1:
    PL/SQL: Statement ignored
    Oracle version is
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production on linux server.
    can anybody help me how to resolve this problem?
    I mean isnt "DBMS_CRYPTO" Oracle's Standard package?
    pls help.

    Really you should not be using SYSTEM account - you should create your own DBA / Development accounts and use those.
    However, what you are missing is to connect as SYS/SYSDBA and...
    GRANT EXECUTE ON dbms_crypto TO system;

  • XUTP_FTP FTP Package help

    I know this is not an oracle product but i know alot of people here use this.
    I have it/use it/love it thanks Chris Poole!!
    Wondered if someone could help me with a problem i am faced with.
    We put files on a FTP site that others use to download via FTP. I created a program that basically uses the FTP package to interrogate the directory (ftp.list)
    insert the entries into a table and download them to the users site.
    This works apart from occasionally people will replace a file. I need to somehow pick up on the file size/date stamp change on the file?
    Anyone know how/if I can achieve this.. I can download to temp location if FTP unable to do before hand?
    Thanks

    Not sure where Chris Poole's site has gone to, but fortunately, I've got a copy of his XUTL_FTP package lying around for reference.
    If you look in the package specification you will see...
    FUNCTION modtime (handle IN xutl_ftp.session_handle, filename IN VARCHAR2, tz_offset IN NUMBER DEFAULT NULL, raise_exception IN BOOLEAN DEFAULT TRUE) RETURN DATE;
      * Returns the last modified time of a file in as a DATE
      * PARAMETERS
      *     handle            handle to the FTP session
      *     filename          the file name (eg 'C:\temp\somefile.csv' or '/tmp/somefile.csv' or 'somefile.csv')
      *     tz_offset         the offset of your timezone wrt GMT (eg 11 or -5)
      *     raise_exception   command not understood exception flagging
      * RETURN
      *     The modified time of the file as a DATE
      * EXCEPTIONS (see above)
      *     ORA-24275 missing or invalid parameter (if filename is null)
      *     invalid_handle
      *     transient_error        
      *     permanent_error        
      *     unexpected_response    
      * NOTES
      *     The filename is passed as is to the FTP server, unless the filename is null, in which case null is returned
      *     The command MDTM is not an official FTP command and is not documented in any RFC. However it is supported by
      *     several servers. Use the raise_exception flag to suppress the exception that would be generated if the command
      *     is not understood. This does NOT suppress exceptions for other errors (used internally).
      *     Testing shows that if MDTM is supported the time is returned as GMT.
      *     Use the tz_offset parameter to return the time adjusted for you. The default is NULL which means no conversion.
      *     The offset you want to supply would normally be the DB time zone, if it's set.
      *     You can determine this by running a PL/SQL block that uses XUTL_FTP.MODTIME for a file that
      *     you can also ls -l in a telnet session. e.g. if somefile.csv shows Mar 23 09:10 in telnet but MODTIME
      *     returns 2006-03-22 22:10:30 (assuming a NLS_DATE_FORMAT of YYYY-MM-DD HH24:MI:SS)
      *     then you need to supply an offset of 11 (no need for plus sign).
      *     XUTL_FTP makes no attempt to guess your TZ relative to the FTP server, as the time zone of the DB
      *     does not have to be set unless you are dealing with 'timestamps with local timezone' datatypes.
      *     So unless explicitly set by a DBA during DB creation, the databases time zone will be GMT!
      */

  • Compiling a programme with third party package help

    Hello all,
    I am writing a programme with a third party package (freetts.jar). The jar is is the classpath of my 2003 server and it compiles ok.
    import com.sun.speech.freetts.Voice;
    import com.sun.speech.freetts.VoiceManager;
    import com.sun.speech.freetts.audio.JavaClipAudioPlayer;
    When I go to run it with java it cant find a class in the package!! I dont get it?
    When it gets to this part it throws Exeption in thread main java lang noclassfounddeferror com/sun/speech/freetts/VoiceManager
    public void myVoice(){
    VoiceManager voiceManager = VoiceManager.getInstance();
    Voice helloVoice = voiceManager.getVoice("kevin16");
    /* Allocates the resources for the voice.
    helloVoice.allocate();
    /* Synthesize speech.
    helloVoice.speak("Thank you for giving me a voice. "
    + "I'm so glad to say hello to this world.");
    It says that it cant find VoiceManager...I cant work it out, VoiceManager is in the package it imported ok at compilation.....why cant it see it when I run it?? This is driving me CRAZY...please help.
    Phil.

    Yes you were kinda right.. I went back and had another look at the 2003 environment variables. They have one set for the system and another for the current user. I have come to the conclusion that the system variable classpath just doesnt work. I looked at it over and over again and it looked ok to me. I just put the same thing in the users variables and low-and-behold it works!!!!
    Go figure!
    Thanks for that, I just needed a trigger.
    Phil.

  • Using SRW Package - Help

    Hello All,
    I've designed web based reports having a web layout. The user usually navigates from one report to another by way of ">
    <th <rw:id id="HFMONTH131" breakLevel="RGMONTH1313" asArray="yes"/> class="OraRowHeader" style="font-weight: normal" ><rw:field id="FMONTH131" src="MONTH" breakLevel="RGMONTH1313" breakValue=" " formatTrigger="STYLE1"> F_MONTH </rw:field></th></a>
    I'm aware of reports being opened,errors captured,messages displed & programs aborted using the various srw packages when called from inside a program unit.
    Is there a way to call a program unit when the user clicks on a particular field which is supposed to be a link to another report instead of the above mentioned hyperlink method. Like for instance we have a formatTrigger for calling a program unit written for manipulating the format of the output.
    Regards,
    Arun.V

    Hello,
    Web Layout only exists in Reports versions >= 9.0.2. In these versions, the object "Button" no more exists.
    When the output is displayed, the reports execution is terminated, so it is not possible to call a program unit when the user click on a field.
    In the Reports Online Help:
    Note: The ability to create a button in the Paper Layout view is no longer supported in Oracle Reports 10g. Use hyperlinks instead. If you open an existing report that contains buttons, the buttons will be converted into text items.
    Regards

  • Bulit-in packages - Help

    Hey,
    Is there any bulit-in package in Oracle that could help us testing the Migration. I mean, now our database will be migrated to another server and migration is going on. After this I want to check whether everything is migrated to the new server that were there in the old one. Is there any bulit-in package to do this job.
    I know I can issue SQL queries and get information from dba_objects, dba_tables etc...
    But my interest is whether we have any package for this?

    For example Toad has "Compare schemas" and "Compare databases" in the menu option DBA
    You also can test http://www.oracle-base.com/dba/miscellaneous/compare_schemas.sql
    Message was edited by:
    cth

  • Regarding packages,help please

    Hi,
    As I have understood it for example,
    What is the difference in putting the/source class files in the
    package package1;
    and
    package my.own.package1
    Its the same right,why do we have to put the extra my.own
    and setting the class path accordingly
    Hope that I conveyed my question correctly.
    Help appreciated
    Thanks
    AS

    You can use a single named package just fine.
    Packages are typically used for ogranization as well
    as reduced name collisions.
    The normal naming convention for packages is as
    follows:
    domain.company.package;
    So if your domain is org and you're developing a gui
    project for apache then it would look like:
    org.apache.gui;
    Just think if everyone started using single name
    packages how many more collisions there would be. For
    example, if you and I were developing web components
    and we both decided to use the package name web then
    it would be tough to intermingle our code as the
    potential for conflicts is higher. For example, if we
    both had an upload object in our package that did
    different things then they couldn't co-exist. See
    below:
    package web
    //My servlet to receive uploads
    class Upload extends Servlet
    package web
    //Your component to help POST uploads
    class Upload extends URLStreamHandler
    }However if we prepend our domains and company names to
    the package then we could share code:
    package com.ics.web
    //My servlet to receive uploads
    class Upload extends Servlet
    package org.apache.web
    //Your component to help POST uploads
    class Upload extends URLStreamHandler
    }Furthermore you'd most likely want some organization
    to your code. you wouldn't just want one package with
    all of your classes in it. It would be hard to
    decipher which is which. So you'd create sub-packages
    under your main package. You get something like
    org.apache.web.servlets and org.apache.web.client. Why
    do this? because you want to treat your client
    classes differently than your servlets. It makes it
    easier at build time as well when the classes need to
    deploy in different places. It's just easier to say
    grab everything from the servlets package and put them
    in my web archive (war). Also grab everything from
    client and put them in the root of my Enterprise
    archive (EAR). There are other uses for this as well,
    I'm sure.
    CliffThanks Cliff for the comprehensive introduction for using packages.Will understand it programatically now.Any doubts will keep posting.
    AS

  • Trojan reported in Bo Edge downloaded packages  --HELP--

    Hello,
    I don't know if the problem has to do with the Antivirus or with the downloaded FILES but here is it :
    I downloaded the trial packgages of BO EDGES 3 and just for testing purpose i ran the antivus on them
    then
    the trojan : TR / CRYPT.CFI.GEN was detected
    in the compressed files : ressource.cab
    Later on I started the install on a test box with the package
    the files:
    boresen.dll
    reporten.dll
    was reported to contain the same trojan and the installation can not continue
    I'm not a specialist of trojan but these things are not spreading in files: either something is wrong with the AV detection algorithm
    or these files contains the same signature than the trojan!
    has anybody found this problem?
    I need to advise a customer and thought that my experience on XI and his needs of a mid market soluton would make EDGE a good solution but not wih trojan.
    The idea that the trojan comes from my computer is inconsistent : I downloaded the new files from a different company (network) and guess what same issue   :
    ANtiVIR: AVIRA professional
    OS (XP, 2003)
    Can somebody help me PLZ?

    It's a false/positive, there are no trojans in our packages.

  • "There is a problem with this Windows Installer package. help pls!

    Hello,
    This is my first time using itunes! can someone help me please.
    When i try to install the itunes, it prompted me a message that says
    "There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor."
    And i called up APPLE and they ask me to use the 6-steps uninstall mathod but i couldnt find any apple software update to uninstall so i ignore. and i tried downloading again and again but it stil doesnt works.
    Can someone guide me how to install itunes?
    Thank you so much

    OK, so you don't have a working iTunes.
    What I would like to do now is to try installing each iTunes component separately.
    First uninstall the 5 iTunes programs that you have installed.
    You should have iTunesSetup.exe saved in a folder on your PC, probably in the downloads folder. If not download and save it now.
    Open the folder containing iTunessetup.exe with explorer.
    Next open notepad and copy the following 3 lines into it.
    md temp
    itunessetup /extract temp
    pause
    Save the file as extract.bat into the same folder that contains the itunes installer.
    Open the downloads folder and you should find the extract file that you saved. Double click on it and a black window will open telling you what it is doing. When its finished, press any key to continue.
    You should find that a folder called temp has been created containing all the itunes msi files.
    Install in this order by double clicking on them:
    Apple Application Support
    Bonjour
    Apple Mobile Device Support
    Apple Software Update
    Quicktime
    iTunes
    If one of the installs fails, stop and post the error message in full. I am hoping that by doing this separately we will get a better error message.

  • MARS Custom Package Help

    We use Microsoft Forefront for our Antivirus/antispyware in our organization. I would like to create a custom package/event/device in MARS. I would like to have the ability for MARS to see if there is a virus infection or if it's spreading inside out network.
    I've been talking with our server admin, and he says that the Forefront program logs everything to a SQL database and probably can export syslog info.
    I've looked through the MARS documentation (v 6.02) and have the 2 Cisco MARS books, but I find it's still complicated.
    Any help would be appreciated.
    Dan

    Ok. After talking with my server guy, I found out that the Forefront app just logs everything to Microsoft Operations Manager 2005 (MOM 2005).
    So now the issue becomes how to get MARS to grab logs from MOM.
    Anyknow know?

  • Need package help

    I've got three files in a package. In the .java file with the main method, I've tried putting the package statement at the top, and import statements, but I still get errors in my main method that are unresolved symbols referring to the classes in the other two files. How is this done exactly?
    All of my .java files are in H:\wired
    All .java files (including main) have package wired; at the top
    I import wired.*; in my main file (tried this with and without it)
    Nothing works so far. If you need more info about the code, please refer to my "Need help moving to OO" thread below.

    If you want your classes to be in package "wired" then you put "package wired;" as the first line of code. So far so good.
    You don't need to import anything to use classes in the same package, so "import wired.*;" is unnecessary.
    If your .java files are in H:\wired, then you must make sure that H:\ is in your classpath. Not H:\wired. The package has to be in the classpath. You may be able to achieve this just by changing your current directory to H:\, but I'm not going to say any more about how to set your classpath.
    And if you want to compile "magazine.java" from that package, you need to type "javac wired/magazine.java" at the command line.

  • Upload support package " help"

    Hi Expert!! how are you....
    i need you help, I will apply support package resouce human, but before making the upload in sap requires decompress in cmd with the command "SAPCAR -xvf Filename extract" since the directory usr/sap/trans/eps/in, but when I write I said "'SAPCAR' is not recognized as an internal or external command,operable program or batch file." It will be something that I am jumping? Some point an area not? I will have to call some command before?
    thank

    Hola Luis,
    el directorio sapmnt es usualment un share creado para compartir la carpeta \usr\sap asi que si esta apuntando a \sapmnt\eps\in debe haber un path \usr\sap\eps\in.... chequea que el paquete este en esa carpeta...
    de lo contrario si es un solo paquete el que vas a cargar en el systema ve a SPAM-> Support package ->Load -> From frontend  y apunta a la direccion del SAR file... sap lo descomprimira automaticamente.
    Saludos
    Juan

Maybe you are looking for

  • How do I make a jar of netbeans (or anything big)?

    I was searching for a jar file of netbeans and instead found a different installation file per operating sytem. I am not complaining about this but I want to make a jar out of this (or another big problem) for the sake of learning how (a jar actually

  • Using regr_slope in sql query

    Hi , I have one question on predicting the sale for next 5 years  along with month  the data as follows. YEAR  Month  Total_Sale 2009    1          88187 2009     2         87654 2009     3         87656 2008     1         10000 2008     2          3

  • Multiple voices pile up across swfs

    We have a web site with multiple Captivate 5 swfs using text-to-speech - simple product demos. If I open the site in Firefox, start a demo, and then jump, by HTML link, to another demo before the first has ended, all is well. If I open the site in IE

  • Parameter Prompting and Oracle Driver Issues

    I am in the process of testing several reports for use in Glassfish/JSP viewer.  I am in need of clarification of: 1.  Parameters are seen - but it does not prompt the user for the parameters on initial JSP page load.  Is this normal behavior or no? 

  • Notification log file

    Hi ebs r12 12.1.1 Problem: Workflow Notification Mailer stop every 3 or 4 hrs. ran "Purge Logs and Closed System Alerts" on date=05/26/2010 FND_LOG_MESSAGES table Workflow Notification Mailer After ran the concurrent and check the tables, most of the