- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SP2-0552 error in oracle 8.1.7
Operating System - HP-UX
1752401
Members
5792
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2003 09:39 PM
тАО12-18-2003 09:39 PM
hello at all,
After having to create a named table my_dual, with the following order:
create table my_dual (dummy varchar2(1) primary key) organization index;
insert into my_dual been worth (' X'); by wanting to execute the order below:
select sys_context(:b2,:b1) from my_dual;
i received the follow error :
SP2-0552: Variable de lien "B1" non d├Г clar├Г e.
how i can to resolve it ?
thank for your assistan
After having to create a named table my_dual, with the following order:
create table my_dual (dummy varchar2(1) primary key) organization index;
insert into my_dual been worth (' X'); by wanting to execute the order below:
select sys_context(:b2,:b1) from my_dual;
i received the follow error :
SP2-0552: Variable de lien "B1" non d├Г clar├Г e.
how i can to resolve it ?
thank for your assistan
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2003 10:15 PM
тАО12-18-2003 10:15 PM
Re: SP2-0552 error in oracle 8.1.7
You need to declare 2 pl/sql variables before you nca pass them to a function, and what you put into them depends what you are trying to pass into sys_context.
You need a pl/sql block. Create a file containing the following, and run from sqlplus:
--
set serveroutput on size 1000000
declare
b1 varchar2(32) := 'USERENV' ;
b2 varchar2(32) := 'DB_NAME' ;
c1 varchar2(64) ;
begin
select sys_context (b1, b2)
into c1
from dual ;
dbms_output.put_line(c1) ;
end ;
/
--
Hopefully that shows the principle of operation.
-- Graham
You need a pl/sql block. Create a file containing the following, and run from sqlplus:
--
set serveroutput on size 1000000
declare
b1 varchar2(32) := 'USERENV' ;
b2 varchar2(32) := 'DB_NAME' ;
c1 varchar2(64) ;
begin
select sys_context (b1, b2)
into c1
from dual ;
dbms_output.put_line(c1) ;
end ;
/
--
Hopefully that shows the principle of operation.
-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2003 10:17 PM
тАО12-18-2003 10:17 PM
Re: SP2-0552 error in oracle 8.1.7
Can also refer the following site for more details on bind variables.
http://download-west.oracle.com/docs/cd/A91202_01/901_doc/server.901/a88827/ch35.htm#1009984
sks
http://download-west.oracle.com/docs/cd/A91202_01/901_doc/server.901/a88827/ch35.htm#1009984
sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2003 04:00 AM
тАО12-19-2003 04:00 AM
Solution
hi,
you should define the bind variables (variable de lien) first using:
e.g.
variable b1 varchar2(10);
variable b2 varchar2(10);
before doing:
select sys_context(:b2,:b1) from my_dual;
hope this helps!
regards
Yogeeraj
you should define the bind variables (variable de lien) first using:
e.g.
variable b1 varchar2(10);
variable b2 varchar2(10);
before doing:
select sys_context(:b2,:b1) from my_dual;
hope this helps!
regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP