Regarding package...help me
I declared one procdure in package specification but not defined in body
I did not declared procedure in package spec but defined in body
Whis is correct.
asp
Another case (albeit an unusual one) for having a SPEC without a body is when th eapplication is being beployed incrementally.
Release 1 has a program P1 that depends upon two packages A and B. We need to release the first tranche of the application, that actually only implements the logic for package A. However, to minimise subsequent disruption we would like to release P1 in its final state.
So in the first release we deploy:
P1 - whatever
A - package spec
A - package body
B - package spec
So P1 compiles and can call functionality relating to A. It will fail if it calls functionality relating to B.
The second release is much simpler:
B - package body
Note that this is a risky strategy. We have to be certain that P1 will not execute B calls before the B package body has been deployed. In the example of which I'm thinking, P1 was a consumer of data files, so it was a matter of tweaking the data load configuration file as part of the second release.
So it is true to say that we can have a package spec without a body, but we cannot execute its public procedures. And, as Asish points out, we can reference any public variables it declares.
Cheers, APC
Similar Messages
-
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
ASYou 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 -
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=59946fschiff 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! -
Help is needed regarding PACKAGE -- Transport Layer
Dear,
I am working on CRM upgrade ,where i found one z-package
in their production system.but if i look into it one z transport layer was defined and if i search for F4 i am not able to find that Trasport layer. how can it be possible to That package without existing Trasport layer.
Please treat as urgent.
Thanks in advance.
with regards,
Rajesh cDear,
problem is regarding SAP SPI provided by HP .
i am working on CRM 2007 upgrade project .in CRM 4.0 SPI package is present.
but in this i am confused.
as All dictionary objects , FM are starting with customer name space i.e Z---
even package they are using is ZSPI for which Transport layer is ZLPO.
but if i search for F4 i am not able to find ZLPO.
and comment in FM is
Copyright(c) 1998 by Hewlett-Packard Company. *
All rights reserved.
so shall i go for manual creation of these object .
Please treate it as urgent.
Thanks in advance.
with regards,
Rajesh c -
hi all,
I tried executing this program....its showing Noclassdeffound error....
***//this file i ve named it as demos.java***
package pack1;
import pack2.demo2;
public class demos
int x,y;
public demos(){
demo2 obj=new demo2(2,3);
this.x=obj.x;
public static void main(String args[])
//int i=8;i++;
//System.out.println("i++="+ i++ +"++i ="+ ++i +"i++=" + i++);
demos o=new demos();
System.out.println("x="+o.x/*+"y="+demo2.y*/);
*//this file i ve named as demo2.java*
package pack2;
public class demo2{
public int x;
public int y;
public demo2(int p,int q){
this.x=p;
this.y=q;
Here i am trying to create two packages pack1 and pack2.....but its not executing plz help????hi ,
I have named the .java file containing main() method as demos.java and i want that .java file to under a package and the package name is "pack1".
So ,if i want to the program to execute correctly --i ve to change the package name to "pack1.demos;" is it?
This is my question?
Also post a code sample on package(apart from java packages).One created on own.
regards...
arjun -
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.VHello,
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 -
Logging package help needed !!
Hi All,
I am trying to understand the logging API.
I have used the log4J as a logging framework and hence am trying to see whether the following features are possible or not with the java.util.logging (JUL) package.
1. Can i format the messages as can be done using the Log4J using pattern layout. There are patterns in Log4J which I think I am not able to find with the JUL.?
2. Can i assign specific handlers(in log4J terms- Appenders) to individual loggers.?
3. Can the configuration file (property file) specify properties pertaining to individual loggers.. I am finding the configuartion file a bit cumbersome with comparison to Log4J..
Now point 2, I know could be possible programatically as API's are exposed. .. but i was wondering if these are possible with the configuration file ..
Also would help a lot if I can get all the config properties the configuration file for JUL can have.. a master list somewhere !!!
Any help is genuinely appreciated..
Regards,
Vaibhav1. Can i format the messages as can be done using the
Log4J using pattern layout. There are patterns in
Log4J which I think I am not able to find with the
JUL.?I think so. "Logger.log
public void log(Level level,
String msg,
Object[] params)
Log a message, with an array of object arguments.
If the logger is currently enabled for the given message level then a corresponding LogRecord is created and forwarded to all the registered output Handler objects.
Parameters:
level - One of the message level identifiers, e.g. SEVERE
msg - The string message (or a key in the message catalog)
params - array of parameters to the message"
2. Can i assign specific handlers(in log4J terms-
Appenders) to individual loggers.?Yes.
3. Can the configuration file (property file) specify
properties pertaining to individual loggers.. I am
finding the configuartion file a bit cumbersome with
comparison to Log4J..Yes, IIRC everything is configured by logger name.
Now point 2, I know could be possible programatically
as API's are exposed. .. but i was wondering if these
are possible with the configuration file ..I'm not sure how much you can do with the config file, since I've never used it. However, if that doesn't suit you you can also make a config class instead.
Also would help a lot if I can get all the config
properties the configuration file for JUL can have.. a
master list somewhere !!!Don't know. -
Regarding Search help on selection-screen field
Hi there,
I am working on custom tables.
I have a requirement to maintain search pattern on a selection-screen field.
selection-screen parameter: p_name which is company name filed from Z table.
By giving a string like Holl* and by pressing F4 on the field p_name it has to popup a dialogbox having list of company names starting with Holl.
Thanks in advance.
-TulasiHi
Go through the link given below :
How to create a search help for my own fields in selection screen
F4 search help on report selection screen
also try :
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'VKORG'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_VKORG'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'C'
TABLES
VALUE_TAB = T_TABLE1
FIELD_TAB = field_tab
RETURN_TAB = RET_TAB
DYNPFLD_MAPPING = DYN_TAB
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
With Regards
Nikunj shah -
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 -
Regarding Packaged function...!
Hi,
i have a packaged function which i am trying to use in my
report query....
i am passing 2 params for this function.....
one is report parameter and the other one is a col in the select query....
so i need to get rows returned based on the conditon satisfying in the query...!
i have a select stat for each condition which will return one column value to the
local variable which i am trying to check in the condition....
My problem is whenever i am running it it's get hanged or it takes a lot of time..
if iam hard coding the parameter value it's fetching records...
plz do the needful....
select
a.latest_version_no,
a.custom_ref_no,
d.customer_name1,
etc.....
etc.....
from
cstbs_contract a,
fxtbs_contract_master b,
cstbs_contractis c,
sttms_customer d
where
a.contract_ref_no=b.contract_ref_no
and
a.latest_version_no=b.version_no
and
b.contract_ref_no = c.contract_ref_no
and
d.customer_no=b.counterparty
and
NVL(b.netting_status,'N') ='N'
AND
b.VERSION_NO = (SELECT MAX(M1.VERSION_NO) FROM FXtbs_contract_master M1 WHERE M1.CONTRACT_REF_NO = B.CONTRACT_REF_NO)
AND
B.CONTRACT_REF_NO IN(SELECT PK_RET_ROWS.FN_RET_ROWS(:P_INST_CHANGE,'FXWFWXP023290102') FROM DUAL)Ravi
For one thing you could avoid the unnecessary select from dual:
AND B.CONTRACT_REF_NO IN(SELECT PK_RET_ROWS.FN_RET_ROWS(:P_INST_CHANGE,'FXWFWXP023290102') FROM DUAL)can be changed to:
AND B.CONTRACT_REF_NO = PK_RET_ROWS.FN_RET_ROWS(:P_INST_CHANGE,'FXWFWXP023290102')You could simplify further, to make sure you only evaluate the function once, and definitely drive off M1, then B:
AND (B.CONTRACT_REF_NO, B.VERSION_NO) = (
SELECT M1.CONTRACT_REF_NO, M1.VERSION_NO
FROM FXtbs_contract_master M1
WHERE M1.CONTRACT_REF_NO = PK_RET_ROWS.FN_RET_ROWS(:P_INST_CHANGE,'FXWFWXP023290102')
)As for the speed: if you still have a problem, check you have the right indexes (eg on CONTRACT_REF_NO and (LATEST_)VERSION_NO for M1, A, B, C and on D.CUSTOMER_NO)?
HTH
Regards Nigel -
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; -
Hi Experts,
We are having one Customised Transaction code for Project management and when i select Sales Employee and enter the pernr , it will display all the sales order under him, but when i am not searching through Pernr Instead am pressing F4 where i can see Last name and First Name under F4 Help and I am giving some name 'FIRST NAME = LIEW' and press enter it showing an error as 'No values found for the selection' though his record existing in View M_PREMN, here the search help used is PREMN, How can we check wheteher this Entry has been maintained under PREMN?
Please provide your Valuable Suggestions.
Thanks,
Sailaja.Did you check authorization failures thru [SU53|http://help.sap.com/saphelp_nw70ehp1/Helpdata/EN/52/6716b3439b11d1896f0000e8322d00/frameset.htm] ?
(Be aware there is an exit on this search help for lowercase and authority-checks)
Regards,
Raymond -
I am having a problem in Search help exit.
Currently we have a search help Z_srchlp. In the Selection method of this search help we have a Help view z_view.
In this view we have a join on Tables KNA1 and KNVV. But now the requirement is to fetch some fields(STR_SUPPL1 and STR_SUPPL2) from ADRC table also. I have to write a Search help Exit for that.
The search help is on SHIP-TO PARTY in VA01. In the Output I need to Display the fields (STR_SUPPL1 and STR_SUPPL2) from ADRC based on adressnumber i.e., ADDRNUMBER in addition to what we are displaying currently.
Please let me know How can I achieve it. It will be great help if u can send me the Code as it is very urgent.Hi,
take a look to the search help F4IF_SHLP_EXIT_CUSTOMER with SE37.
Regards
Nicole
Maybe you are looking for
-
IPhone 3G no longer charges from car stereo
Hello all, I can no longer charge my iPhone 3g from my car stereo since updating to version 2.1. I have a Panasonic CQ-RX400U with a USB connector on the front. Prior to the update I was able to connect and charge the phone and play the iPod from the
-
Sub:Filtering is not working in ALV Grid
Hi All, I developed a new ALV report,where in the out put i can set filtering for other columns(ex:Date,Number),but i can'nt able to set Filtering for one of the column which is CHAR type. But when we went to table for this field filtering is working
-
Has Premiere Elements 12 fixed the jittery playback issues from CS4?
I use Premiere Pro CS4 to edit my videos. I shoot with a Canon DSLR the 60D and import the video files straight into Premiere Pro without the extra transcoding step. (too much trouble to transcode the raw video with every clip). I get jittery and jer
-
hello i am having issues and it is quite annoying i just want to you use my ipod again. ok so one day when i went to use it it wouldnt turn on actually it wouldnt do anything i tried everything it wouldnt connect to the computer or even show up it w
-
I went to update My iPad to the ios5 n it erased everything! It might have backed it up to my friends computer, how do I find it?