PLS-00357: Table,View Or Sequence reference 'A' not allowed in this context
Hello
I am accepting input values from users through java web page. To accept the values I am using the following code:
import java.sql.*;
import javax.sql.DataSource;
import javax.naming.*;
public class spsrch
public void spsrch()
public String espsrch(String p, String d, String a)
String s1= "";
String strColor="#C0C0C0";
try
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/Oracle9i");
Connection Con = ds.getConnection();
Statement stmt = Con.createStatement();
CallableStatement proc1stmt1=Con.prepareCall ("{call Allsch("+p+","+d+")}");
// ResultSet rs = proc1stmt1.execute();
proc1stmt1.executeUpdate();
Con.close();
catch(Exception e)
System.out.println("Flag Raised"+e);
return s1;
I am calling the procedure 'Allsch' to apply some logic before inserting data into a SQL table.
The 'Allsch' procedure is :
create or replace procedure tmpsch(pno varchar2,pdes varchar2) as
mpartnum varchar2(30);
mpn varchar2(30);
mdes varchar2(150);
cursor c1 is select partnum,description,aircraft_type from master_catalog where description like ltrim(rtrim(mdes))||'%' AND partnum like mpn||'%';
cursor c2 is select partnum from ipc_master where partnum=mpartnum;
cursor c3 is select partnum from fedlog_data where partnum=mpartnum;
cursor c4 is select partnum from superparts where partnum=mpartnum;
cursor c5 is select part_no from supplier_catalog where part_no=mpartnum;
mpno1 varchar2(30);
mpno2 varchar2(30);
mpno3 varchar2(30);
mpno4 varchar2(30);
mpno5 varchar2(30);
mdescription varchar2(150);
maircraft_type varchar2(15);
mstat varchar2(1);
mstat1 varchar2(30);
mstat2 varchar2(30);
mstat3 varchar2(30);
mstat4 varchar2(30);
begin
mstat:='N';
mpn:=pno;
mdes:=pdes;
for i in c1 loop
mstat:='N';
mstat1:='N';
mstat2:='N';
mstat3:='N';
mstat4:='N';
mpno1:=i.partnum;
mpartnum:=i.partnum;
mdescription:=i.description;
maircraft_type:=i.aircraft_type;
for j in c2 loop
mpno2:=j.partnum;
end loop;
for k in c3 loop
mpno3:=k.partnum;
end loop;
for l in c4 loop
mpno4:=l.partnum;
end loop;
for m in c5 loop
mpno5:=m.part_no;
end loop;
if mpno2=mpartnum then
mstat1:=mpno2;
end if;
if mpno3=mpartnum then
mstat2:=mpno3;
end if;
if mpno4=mpartnum then
mstat3:=mpno4;
end if;
if mpno5=mpartnum then
mstat4:=mpno5;
end if;
if mpno1=mpartnum then
mstat:='Y';
insert into tmpcat values(mpno1,mdescription,maircraft_type,mstat1,mstat2,mstat3,mstat4);
end if;
end loop;
end;
Java program compiling time, it not showing any error. But after executing, it is not inserting any data into 'tmpcat' table and throwing the following error :
Flag Raisedjava.sql.SQLException: ORA-06550: line 1, column 14:
PLS-00357: Table,View Or Sequence reference 'A' not allowed in this context
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
[07/22/03 11:47:38][executor-0][W]: Handling error; throwable is "null", status
code is "404" and message is "Not Found: /User/Ecatalog/Validations.js".
[07/22/03 11:47:38][executor-0][W]: Handling error; throwable is "null", status
code is "404" and message is "Not Found: /User/Ecatalog/Validations.js".
Any one please help me to solve the issue.
With thanks
Pramod kumar.
My Email-id is : [email protected]
What are p and d in
"{call Allsch("+p+","+d+")}"
Something tells me you might need some quotes in this statement since they are varchar2. Maybe
"{call Allsch('"+p+"','"+d+"')}"
If this doesn't work try to cut off parts of the procedure until it works.
Mike
Similar Messages
-
Re: PLS-00357 Table,View Or Sequence reference 'string' not allowed in this con
i have the same problem , can somebod help
i pasting my code here , please help me resolving
SQL> declare
2 continue char(1):='y';
3 begin
4 while(continue='y')
5 loop
6 dbms_output.put_line('somen');
7 dbms_output.put_line('do u wan continue');
8 continue:=to_char(&continue);
9 end loop;
10 end;
11 /
Enter value for continue: y
old 8: continue:=to_char(&continue);
new 8: continue:=to_char(y);
continue:=to_char(y);
ERROR at line 8:
ORA-06550: line 8, column 19:
PLS-00357: Table,View Or Sequence reference 'Y' not allowed in this context
ORA-06550: line 8, column 1:
PL/SQL: Statement ignoredJust to emphasise Sven's point that the substitution variable (&continue) is resolved once and "compiled" into the code, try making a stored procedure instead of an anonymous block.
SQL> create procedure p as
2 continue char(1):='y';
3 begin
4 while(continue='y') loop
5 dbms_output.put_line('somen');
6 dbms_output.put_line('do u wan continue');
7 continue:=('&continue');
8 end loop;
9 end;
10 /
Enter value for continue: q
old 7: continue:=('&continue');
new 7: continue:=('q');
Procedure created.
SQL> select text from user_source
2 where name = 'P'
3 order by line;
TEXT
procedure p as
continue char(1):='y';
begin
while(continue='y') loop
dbms_output.put_line('somen');
dbms_output.put_line('do u wan continue');
continue:=('q');
end loop;
end;
Note that where you had the substitution variable, there is now a literal value, q in my case. Note that because I did not respond with y for the value of continue I can safely run this procedure.
SQL> exec p;
somen
do u wan continue
PL/SQL procedure successfully completed.
John -
The reference to the table, view or sequence is not allowed in this context
Hi,
I'm triying to execute the SP that I describe below and the OS give me an error:
CREATE OR REPLACE PROCEDURE DWARE.P_CSCV_AGR_MONTH_REVENUE
TBL_NAME VARCHAR2,
START_DATE DATE,
RESULT_ OUT NUMBER
) AS
BEGIN
DECLARE
v_tbl_name VARCHAR2(30);
v_start_date DATE;
v_result NUMBER := 0;
v_select_aux VARCHAR2(32767) := ' ';
v_temp_table VARCHAR2(30);
v_exists NUMBER;
BEGIN
v_tbl_name := TBL_NAME;
v_start_date := START_DATE;
v_temp_table := 'temp_' || v_tbl_name;
SELECT count(*) INTO v_exists FROM tab WHERE lower(tname) = lower(v_temp_table);
IF (v_exists = 1) THEN
v_select_aux := '
DROP TABLE ' || v_temp_table || ' CASCADE CONSTRAINTS PURGE
EXECUTE IMMEDIATE (v_select_aux);
COMMIT;
END IF;
v_select_aux := 'CREATE TABLE ' || v_temp_table || ' AS
SELECT ch.date_ month_revenue,
s.date_sub month_sub,
s.codpromoter,
u.OPERATOR,
SUM (ch.total) AS TOTAL_OK
FROM cscv_sub_charges_' || to_char(v_start_date, 'YYYY_MM')|| ' ch
INNER JOIN cscv_subs s
ON ch.id_sub = s.ID
INNER JOIN cscv_users u
ON s.id_user = u.ID
WHERE ch.STATUS = 0
GROUP BY ch.date_, s.date_sub, s.codpromoter, u.OPERATOR';
EXECUTE IMMEDIATE (v_select_aux);
COMMIT;
v_select_aux := '
INSERT INTO ' || v_tbl_name || ' (
month_revenue,
month_sub,
codpromoter,
operator,
TOTAL_0,
TOTAL_1,
TOTAL_2,
TOTAL_3,
TOTAL_4,
TOTAL_5,
TOTAL_6,
TOTAL_7,
TOTAL_8,
TOTAL_9,
TOTAL_10,
TOTAL_11
SELECT
month_revenue,
month_sub,
codpromoter,
operator,
TOTAL_0,
TOTAL_1,
TOTAL_2,
TOTAL_3,
TOTAL_4,
TOTAL_5,
TOTAL_6,
TOTAL_7,
TOTAL_8,
TOTAL_9,
TOTAL_10,
TOTAL_11
FROM
SELECT
month_revenue,
month_sub,
codpromoter,
operator,
sum(total_ok) total_0,
0 total_1,
0 total_2,
0 total_3,
0 total_4,
0 total_5,
0 total_6,
0 total_7,
0 total_8,
0 total_9,
0 total_10,
0 total_11
FROM '|| v_temp_table ||'
WHERE to_char(month_sub,''mm/yyyy'') = to_char(sysdate,''mm/yyyy'')
GROUP BY month_revenue,month_sub,codpromoter, operator
UNION ALL
SELECT
month_revenue,
month_sub,
codpromoter,
operator,
0,
sum(total_ok),
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
FROM '|| v_temp_table ||'
WHERE to_char(month_sub,''mm/yyyy'') = to_char((to_date(sysdate,''dd/mm/yy'') - INTERVAL ''1'' MONTH),''mm/yyyy'')
GROUP BY month_revenue,month_sub,codpromoter, operator
GROUP BY month_revenue,
month_sub,
codpromoter,
operator
EXECUTE IMMEDIATE (v_select_aux);
v_result := v_result + SQL%ROWCOUNT;
COMMIT;
v_select_aux := '
DROP TABLE ' || v_temp_table || ' CASCADE CONSTRAINTS PURGE
EXECUTE IMMEDIATE (v_select_aux);
COMMIT;
RESULT_ := v_result;
END;
END P_CSCV_AGR_MONTH_REVENUE;
BEGIN
DWARE.P_CSCV_AGR_MONTH_REVENUE(CSCV_AGR_MONTH_REVENUE,'01/01/2010');
END;
/and the output is:
Error at line 1
ORA-06550: líne 2, column 32:
PLS-00357: The reference to the table, view or sequence 'CSCV_AGR_MONTH_REVENUE' is not allowed in this context
ORA-06550: líne 2, column 1:
PL/SQL: Statement ignoredwhat could I do to resove the problem??
Thanks in advance...Hi,
Your procedure's signature is
CREATE OR REPLACE PROCEDURE DWARE.P_CSCV_AGR_MONTH_REVENUE
TBL_NAME VARCHAR2,
START_DATE DATE,
RESULT_ OUT NUMBER
) i.e. it is expecting two input parameters, TBL_NAME in VARCHAR2 format and the other START_DATE in DATE format. Also you need a variable with data type as NUMBER to hold the value of OUT parameter RESULT_
Now look at the way you are calling this procedure
BEGIN
DWARE.P_CSCV_AGR_MONTH_REVENUE(CSCV_AGR_MONTH_REVENUE,'01/01/2010');
END;
/first parameter has to be a VARCHAR2, so enclose CSCV_AGR_MONTH_REVENUE into single quotes.
second parameter should be a date, so use to_date() function.
Lastly declare a variable with data type as Number for holding value of out parameter RESULT_
Something like this :
declare
t_num number;
begin
a('CSCV_AGR_MONTH_REVENUE',to_date('01/01/2010','MM/DD/YYYY'),t_num);
dbms_output.put_line(t_num);
end;Vivek L -
Deployment error:Table, view or sequence reference to ABC is not allowed
Hi all,
I have created a mapping in OWB where a table ABC gets loaded from its stage table S_ABC. The mapping validates fine, code generation is fine but when I try to deploy the mapping it gives me a deployment error saying PLS:00357 Table, View or sequence reference ABC is not allowed.
I used the same logic to one of my other mappings and it gets executed without any problem. If you guys could tell me what is going wrong in this mapping, that would be very helpful.
Thanks.
Priyaif you are using a view or sequence in the mapping or referencing any other object then the owb user needs to have grants to access those objects otherwise the deployment will fail. Please check the object grants.
-
Org.xml.sax.SAXParseException: Reference is not allowed in prolog
Hi,
I have been using DocumentBuilder to parse an xml string in our application but now came up with this exception:
org.xml.sax.SAXParseException: Reference is not allowed in prolog
When I looked at the xml data, I found that it does not have a prolog in it. I also found that the data contains end of line character ""
""
" in it.
This the xml to be parsed: (Qutoted them to view the unicodes in xml)
"<dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:title xml:lang="en">Test metadata</dc:title>
<dc:language>en</dc:language>
<dc:description xml:lang="en">Blah</dc:description>
<dc:creator>BEGIN:vcard
FN:Jan Austin
ORG:IBalahblahLtd
EMAIL:[email protected]
END:vcard</dc:creator>
<dc:format>text/html</dc:format>
<dc:identifier>http://gg.com/</dc:identifier>
<dc:subject>Medicine and Dentistry</dc:subject>
</dc:dc>"
And in the class, I used,
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(file);I can not change the xml data to be parsed as the application gets this data from other targets through a web service.
So, can anyone provide any suggestions to solve this issue please?
Thanks,
Shiv.I have tried various options by
1. factory.setIgnoringElementContentWhitespace(true);
2. factory.setValidation(false);
But, none of them seems to work.
Could anyone please giv me atleast a gist abt where to look about?
Cheers,
Shiv. -
I am experiencing issue with my SharePoint site , when I am trying to add new Item in List . Error given below :--> 02/03/2015 08:23:36.13 w3wp.exe (0x2E04) 0x07E8 SharePoint Server Logging Correlation Data 9gc5 Verbose Thread change; resetting trace
level override to 0; resetting correlation to e2e9cddc-cf35-4bf8-b4f3-021dc91642da c66c2c17-faaf-4ff9-a414-303aa4b4726b e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015 08:23:36.13 w3wp.exe (0x2E04) 0x07E8 Document Management Server Document Management 52od
Medium MetadataNavigationContext Page_InitComplete: No XsltListViewWebPart was found on this page[/sites/00003/Lists/PM%20Project%20Status/NewForm.aspx?RootFolder=&IsDlg=1]. Hiding key filters and downgrading tree functionality to legacy ListViewWebPart(v3)
level for this list. e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015 08:23:36.17 w3wp.exe (0x1B94) 0x1A0C SharePoint Server Logging Correlation Data 77a3 Verbose Starting correlation. b4d14aec-5bd4-4fb1-b1e3-589ba337b111 02/03/2015 08:23:36.17 w3wp.exe (0x1B94)
0x1A0C SharePoint Server Logging Correlation Data 77a3 Verbose Ending correlation. b4d14aec-5bd4-4fb1-b1e3-589ba337b111 02/03/2015 08:23:36.31 w3wp.exe (0x2E04) 0x07E8 SharePoint Foundation Database 880i High System.Data.SqlClient.SqlException: Cannot insert
the value NULL into column 'tp_DocId', table 'Content_SP_00003.dbo.AllUserData'; column does not allow nulls. INSERT fails. The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject
stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavi... e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015
08:23:36.31* w3wp.exe (0x2E04) 0x07E8 SharePoint Foundation Database 880i High ...or runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream,
Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior,
RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand
command, CommandBehavior behavior,Are you trying to setup P2P? Could you explain the process you followed completely? By anychance you create the backup and then created the publication?
Regards, Ashwin Menon My Blog - http:\\sqllearnings.com -
Table View in Query Designer is not avaliable
Hi Guru:
The "table view" in the menu item "View" is grey in the query designer.
I have only 1 structure ( key figure structure ) in my query.
How to change it to the "Table View" mode then?
Thanks.
EricHi
Please create another structure in your query. Once you have 2 structures then only table view will be enabled.
Regards
Pradip -
There was one other thread from years ago detailing this same problem. The only clue was to check whether select all privs were enabled for the user on dba_objects. They are for the user accessing the system. In fact, all tables/views/procs/funcs can be viewed in the tree view of DBVisualizer. For whatever reason, OSD does not show anything.
I'd appreciate any clues! Thank you!
OSD Version Version 4.1.0.18
OS: Windows 7/64
Java: 1.8.0
Connecting to Oracle 11g 11.2.0.3.0Thank you, Gary.
I updated the post with the version info. I did not explicitly install this JDBC driver, so whatever the OSD came with? Unless it is using whatever is installed on my machine, in which case would be the thin driver.
I did check out that post, and I appreciate you sharing it. I did click the 'include synonyms' filter, but behavior remained unchanged.
I would prefer to use OSD, and that is what our dev team was expecting to use, but we just can't see the information. We are using an ID that does not 'own' those tables, per se. But, why would DBVisualizer show these tables, when OSD does not? -
Sequence Number does not allowed here
Hi,
I am inserting rows in a table called membership with seqence number membership_id.nextval. But i am getting error like
"Sequence number not allowed here"
Before i inserted about 3852 rows in that table
Here is the statement i am using
INSERT INTO MEMBERSHIP (membership_id,ACTIVIST_ID,G_N_ID,ROLE_ID,
REGION_ID,START_dATE,END_DATE,STATUS,state_id)
SELECT membership_id.nextval,a.activist_id,G.g_n_id,R.ROLE_ID,
'',mwlgmemship.start_date,'','Active',''
FROM activist a,
role r,
group_network g,
final.mwlgmemship mwlgmemship,final.mwlgmem mwlgmem
WHERE
a.first_name=mwlgmem.fname and a.last_name=mwlgmem.lname and a.c_zip_code=mwlgmem.czip and
a.c_country=mwlgmem.country and mwlgmem.person_id=mwlgmemship.person_id and
to_char(mwlgmemship.grno)=g.g_n_reference and mwlgmemship.role_id=r.role_id order by r.role_id
I could not understand the problem, please help me
I am selecting the other fields from other tables.
Thanks
SrinivasRestrictions on Sequence Values You cannot use CURRVAL and NEXTVAL in the following constructs:
A subquery in a DELETE, SELECT, or UPDATE statement
A query of a view or of a materialized view
A SELECT statement with the DISTINCT operator
A SELECT statement with a GROUP BY clause or ORDER BY clause
A SELECT statement that is combined with another SELECT statement with the UNION, INTERSECT, or MINUS set operator
The WHERE clause of a SELECT statement
The DEFAULT value of a column in a CREATE TABLE or ALTER TABLE statement
The condition of a CHECK constraintAbove text is from the sql reference manual.
HTH
Regards
Raj -
Hi,
I have a table with many LONG fields (28). So far, everythings works fine.
However, if I add another LONG field I cannot insert a dataset anymore
(29 LONG fields).
Does there exist a MaxDB parameter or anything else I can change to make inserts possible again?
Thanks in advance
Michael
appendix:
- Create and Insert command and error message
- MaxDB version and its parameters
Create and Insert command and error message
CREATE TABLE "DBA"."AZ_Z_TEST02"
"ZTB_ID" Integer NOT NULL,
"ZTB_NAMEOFREPORT" Char (400) ASCII DEFAULT '',
"ZTB_LONG_COMMENT" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_00" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_01" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_02" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_03" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_04" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_05" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_06" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_07" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_08" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_09" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_10" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_11" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_12" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_13" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_14" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_15" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_16" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_17" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_18" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_19" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_20" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_21" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_22" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_23" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_24" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_25" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_26" LONG ASCII DEFAULT '',
PRIMARY KEY ("ZTB_ID")
The insert command
INSERT INTO AZ_Z_TEST02 SET ztb_id = 87
works fine. If I add the LONG field
"ZTB_LONG_TEXTBLOCK_27" LONG ASCII DEFAULT '',
the following error occurs:
Auto Commit: On, SQL Mode: Internal, Isolation Level: Committed
General error;-7032 POS(1) SQL statement not allowed for column of data type LONG
INSERT INTO AZ_Z_TEST02 SET ztb_id = 88
MaxDB version and its parameters
All db params given by
dbmcli -d myDB -u dbm,dbm param_directgetall > maxdb_params.txt
are
KERNELVERSION KERNEL 7.5.0 BUILD 026-123-094-430
INSTANCE_TYPE OLTP
MCOD NO
RESTART_SHUTDOWN MANUAL
SERVERDBFOR_SAP YES
_UNICODE NO
DEFAULT_CODE ASCII
DATE_TIME_FORMAT INTERNAL
CONTROLUSERID DBM
CONTROLPASSWORD
MAXLOGVOLUMES 10
MAXDATAVOLUMES 11
LOG_VOLUME_NAME_001 LOG_001
LOG_VOLUME_TYPE_001 F
LOG_VOLUME_SIZE_001 64000
DATA_VOLUME_NAME_0001 DAT_0001
DATA_VOLUME_TYPE_0001 F
DATA_VOLUME_SIZE_0001 64000
DATA_VOLUME_MODE_0001 NORMAL
DATA_VOLUME_GROUPS 1
LOG_BACKUP_TO_PIPE NO
MAXBACKUPDEVS 2
BACKUP_BLOCK_CNT 8
LOG_MIRRORED NO
MAXVOLUMES 22
MULTIO_BLOCK_CNT 4
DELAYLOGWRITER 0
LOG_IO_QUEUE 50
RESTARTTIME 600
MAXCPU 1
MAXUSERTASKS 50
TRANSRGNS 8
TABRGNS 8
OMSREGIONS 0
OMSRGNS 25
OMS_HEAP_LIMIT 0
OMS_HEAP_COUNT 1
OMS_HEAP_BLOCKSIZE 10000
OMS_HEAP_THRESHOLD 100
OMS_VERS_THRESHOLD 2097152
HEAP_CHECK_LEVEL 0
ROWRGNS 8
MINSERVER_DESC 16
MAXSERVERTASKS 20
_MAXTRANS 288
MAXLOCKS 2880
LOCKSUPPLY_BLOCK 100
DEADLOCK_DETECTION 4
SESSION_TIMEOUT 900
OMS_STREAM_TIMEOUT 30
REQUEST_TIMEOUT 5000
USEASYNC_IO YES
IOPROCSPER_DEV 1
IOPROCSFOR_PRIO 1
USEIOPROCS_ONLY NO
IOPROCSSWITCH 2
LRU_FOR_SCAN NO
PAGESIZE 8192
PACKETSIZE 36864
MINREPLYSIZE 4096
MBLOCKDATA_SIZE 32768
MBLOCKQUAL_SIZE 16384
MBLOCKSTACK_SIZE 16384
MBLOCKSTRAT_SIZE 8192
WORKSTACKSIZE 16384
WORKDATASIZE 8192
CATCACHE_MINSIZE 262144
CAT_CACHE_SUPPLY 1632
INIT_ALLOCATORSIZE 229376
ALLOW_MULTIPLE_SERVERTASK_UKTS NO
TASKCLUSTER01 tw;al;ut;2000sv,100bup;10ev,10gc;
TASKCLUSTER02 ti,100dw;30000us;
TASKCLUSTER03 compress
MPRGN_QUEUE YES
MPRGN_DIRTY_READ NO
MPRGN_BUSY_WAIT NO
MPDISP_LOOPS 1
MPDISP_PRIO NO
XP_MP_RGN_LOOP 0
MP_RGN_LOOP 0
MPRGN_PRIO NO
MAXRGN_REQUEST 300
PRIOBASE_U2U 100
PRIOBASE_IOC 80
PRIOBASE_RAV 80
PRIOBASE_REX 40
PRIOBASE_COM 10
PRIOFACTOR 80
DELAYCOMMIT NO
SVP1_CONV_FLUSH NO
MAXGARBAGECOLL 0
MAXTASKSTACK 1024
MAX_SERVERTASK_STACK 100
MAX_SPECIALTASK_STACK 100
DWIO_AREA_SIZE 50
DWIO_AREA_FLUSH 50
FBM_VOLUME_COMPRESSION 50
FBM_VOLUME_BALANCE 10
FBMLOW_IO_RATE 10
CACHE_SIZE 10000
DWLRU_TAIL_FLUSH 25
XP_DATA_CACHE_RGNS 0
DATACACHE_RGNS 8
XP_CONVERTER_REGIONS 0
CONVERTER_REGIONS 8
XP_MAXPAGER 0
MAXPAGER 11
SEQUENCE_CACHE 1
IDXFILELIST_SIZE 2048
SERVERDESC_CACHE 73
SERVERCMD_CACHE 21
VOLUMENO_BIT_COUNT 8
OPTIM_MAX_MERGE 500
OPTIM_INV_ONLY YES
OPTIM_CACHE NO
OPTIM_JOIN_FETCH 0
JOIN_SEARCH_LEVEL 0
JOIN_MAXTAB_LEVEL4 16
JOIN_MAXTAB_LEVEL9 5
READAHEADBLOBS 25
RUNDIRECTORY E:\_mp\u_v_dbs\EVERW_C5
_KERNELDIAGFILE knldiag
KERNELDIAGSIZE 800
_EVENTFILE knldiag.evt
_EVENTSIZE 0
_MAXEVENTTASKS 1
_MAXEVENTS 100
_KERNELTRACEFILE knltrace
TRACE_PAGES_TI 2
TRACE_PAGES_GC 0
TRACE_PAGES_LW 5
TRACE_PAGES_PG 3
TRACE_PAGES_US 10
TRACE_PAGES_UT 5
TRACE_PAGES_SV 5
TRACE_PAGES_EV 2
TRACE_PAGES_BUP 0
KERNELTRACESIZE 648
EXTERNAL_DUMP_REQUEST NO
AKDUMP_ALLOWED YES
_KERNELDUMPFILE knldump
_RTEDUMPFILE rtedump
UTILITYPROTFILE dbm.utl
UTILITY_PROTSIZE 100
BACKUPHISTFILE dbm.knl
BACKUPMED_DEF dbm.mdf
MAXMESSAGE_FILES 0
EVENTALIVE_CYCLE 0
_SHAREDDYNDATA 10280
_SHAREDDYNPOOL 3607
USE_MEM_ENHANCE NO
MEM_ENHANCE_LIMIT 0
__PARAM_CHANGED___ 0
__PARAM_VERIFIED__ 2008-05-13 13:47:17
DIAG_HISTORY_NUM 2
DIAG_HISTORY_PATH E:\_mp\u_v_dbs\EVERW_C5\DIAGHISTORY
DIAGSEM 1
SHOW_MAX_STACK_USE NO
LOG_SEGMENT_SIZE 21333
SUPPRESS_CORE YES
FORMATTING_MODE PARALLEL
FORMAT_DATAVOLUME YES
HIRES_TIMER_TYPE CPU
LOAD_BALANCING_CHK 0
LOAD_BALANCING_DIF 10
LOAD_BALANCING_EQ 5
HS_STORAGE_DLL libhsscopy
HS_SYNC_INTERVAL 50
USE_OPEN_DIRECT NO
SYMBOL_DEMANGLING NO
EXPAND_COM_TRACE NO
OPTIMIZE_OPERATOR_JOIN_COSTFUNC YES
OPTIMIZE_JOIN_PARALLEL_SERVERS 0
OPTIMIZE_JOIN_OPERATOR_SORT YES
OPTIMIZE_JOIN_OUTER YES
JOIN_OPERATOR_IMPLEMENTATION IMPROVED
JOIN_TABLEBUFFER 128
OPTIMIZE_FETCH_REVERSE YES
SET_VOLUME_LOCK YES
SHAREDSQL NO
SHAREDSQL_EXPECTEDSTATEMENTCOUNT 1500
SHAREDSQL_COMMANDCACHESIZE 32768
MEMORY_ALLOCATION_LIMIT 0
USE_SYSTEM_PAGE_CACHE YES
USE_COROUTINES YES
MIN_RETENTION_TIME 60
MAX_RETENTION_TIME 480
MAX_SINGLE_HASHTABLE_SIZE 512
MAX_HASHTABLE_MEMORY 5120
HASHED_RESULTSET NO
HASHED_RESULTSET_CACHESIZE 262144
AUTO_RECREATE_BAD_INDEXES NO
LOCAL_REDO_LOG_BUFFER_SIZE 0
FORBID_LOAD_BALANCING NO>
Lars Breddemann wrote:
> Hi Michael,
>
> this really looks like one of those "Find-the-5-errors-in-the-picture" riddles to me.
> Really.
>
> Ok, first to your question: this seems to be a bug - I could reproduce it with my 7.5. Build 48.
> Anyhow, when I use
>
> insert into "AZ_Z_TEST02" values (87,'','','','','','','','','','','','','','','',''
> ,'','','','','','','','','','','','','','','','')
>
> it works fine.
It solves my problem. Thanks a lot. -- I hardly can believe that this is all needed to solve the bug. This may be the reason why I have not given it a try.
>
Since explicitely specifying all values for an insert is a good idea anyhow (you can see directly, what value the new tupel will have), you may want to change your code to this.
>
> Now to the other errors:
> - 28 Long values per row?
> What the heck is wrong with the data design here?
> Honestly, you can save data up to 2 GB in a BLOB/CLOB.
> Currently, your data design allows 56 GB per row.
> Moreover 26 of those columns seems to belong together originally - why do you split them up at all?
>
> - The "ZTB_NAMEOFREPORT" looks like something the users see -
> still there is no unique constraint preventing that you get 10000 of reports with the same name...
You are right. This table looks a bit strange. The story behind it is: Each crystal report in the application has a few textblocks which are the same for all the e.g. persons the e.g. letter is created for. Principally, the textblocks could be directy added to the crystal report. However, as it is often the case, these textblocks may change once in a while. Thus, I put the texts of the textblock into this "strange" db table (one row for each report, one field for each textblock, the name of the report is given by "ztb_nameofreport"). And the application offers a menue by which these textblocks can be changed. Of course, the fields in the table could be of type CHAR, but LONG has the advantage that I do not have to think about the length of the field, since sometime the texts are short and sometimes they are really long.
(These texts would blow up the sql select command of the crystal report very much if they were integrated into the this select command. Thus it is realized in another way: the texts are read before the crystal report is loaded, then the texts are "given" to the crystal report (by its parameters), and finally the crystal report is loaded.)
>
- MaxDB 7.5 Build 26 ?? Where have you been the last years?
> Really - download the 7.6.03 Version [here|https://www.sdn.sap.com/irj/sdn/maxdb-downloads] from SDN and upgrade.
> With 7.6. I was not able to reproduce your issue at all.
The customer still has Win98 clients. MaxDB odbc driver 7.5.00.26 does not work for them. I got the hint to use odbc driver 7.3 (see [lists.mysql.com/maxdb/25667|lists.mysql.com/maxdb/25667]). Do MaxDB 7.6 and odbc driver 7.3 work together?
All Win98 clients may be replaced by WinXP clients in the near future. Then, an upgrade may be reasonable.
>
- Are you really putting your data into the DBA schema? Don't do that, ever.
> DBM/SUPERDBA (the sysdba-schemas) are reserved for the MaxDB system tables.
> Create a user/schema for your application data and put your tables into that.
>
> KR Lars
In the first MaxDB version I used, schemas were not available. I haven't changed it afterwards. Is there an easy way to "move an existing table into a new schema"?
Michael -
Create/Drop/Compile Table, Views, Triggers, Sequences, etc.
Is there a way to create, drop, and compile objects on an Oracle database with the ADF library? If so, any good examples?
Can the results be captured as well?Frank,
Maybe I wasn't clear enough. The only example I saw that involved the blob column was number 85 which did not contain info for database maintance.
I have a JClient application that reads database structures like triggers, tables, and views. I would like the user to be able to push a button and the trigger be compiled in the database. While SQL Dev probably has more features and does a better job I have added a bunch of internal stuff that would have to be manually added in SQL Dev each time a new trigger was created.
Is there a way, when working with the current transaction(or new transaction), to issue a statement like you would in SQL*Plus "DROP TABLE EMPLOYEES;" with the results being "TABLE DROPPED"?
thanks. -
In my control flow, I set up a variable for the table name, enumerated by SMO, following the instructions from the link here:
http://www.bidn.com/blogs/mikedavis/ssis/156/using-a-for-each-loop-on-tables-ssis
Now, I put a data flow task inside the foreach. I selected the OLE DB connection manger for my database, set the Data access mode to "Table name or view name variable", and selected my variable name from the drop down. So far so good. When I click on OK,
it gives me an error 0x80040E37, basically saying it can't open the rowset for "my variable", Check that the object exists in the database.
So, I assume I won't be able to do this "that' easily, and I will need to build a "SQL command from variable" or some such thing. Any advice on how to build this Source editor to dynamically name my columns from the variable?
Thanks in advance!
mpleafHi mpleaf,
Please try to set "ValidateExternalData" to False in your OLE DB Source Properties and "DelayValidation" property to TRUE, please refer to similar threads:
http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/620557d9-41bc-4a40-86d5-0a8d2f910d8c/
http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/456f2201-447c-41b3-bf27-b3ba47e6b737
Thanks,
Eileen
Eileen Zhao
TechNet Community Support -
I have created MView under report_owner schema and like to refresh the MView via scheduler job and the MView won't get refreshed.i am getting this errors.
ORA-12012: error on auto execute of job 135426
ORA-06550: line 1, column 402:
PLS-00357: Table,View Or Sequence reference 'REPORT_OWNER.M_REP_01'
SQL> l
1 BEGIN
2 sys.dbms_scheduler.create_job(
3 job_name => '"SYSTEM"."REFRESH_MVIEWS"',
4 job_type => 'PLSQL_BLOCK',
5 job_action => 'BEGIN
dbms_mview.refresh(list=>"REPORT_OWNER"."M_REP_01");END;',
6 job_class => 'AUTO_TASKS_JOB_CLASS',
7 start_date => SYSTIMESTAMP,
8 repeat_interval => 'FREQ=MINUTELY',
9 end_date => NULL,
10 enabled => TRUE,
11 comments => 'To refresh REPORT_OWNER schema MViews');
12* END;
SQL> /
PL/SQL procedure successfully completed.
So what is the problem ??Hi,
may be that
dbms_mview.refresh(list=>"REPORT_OWNER"."M_REP_01");END;',should be
dbms_mview.refresh(list=>''REPORT_OWNER.M_REP_01'');END;',so the problem is just for the wrong usage of quotes?
Max -
Hai
I created sequence
create sequence emp_seq startwith 800 increment by 1 maxvalues 1000;
and emp table is empty.I want to set module information into v$session by dbms_application_info package.According to that i created procedure sucessufully ,i got the below error when executing the procedure
SQL> CREATE OR REPLACE PROCEDURE ADD_EMPLOYEE(NAME VARCHAR2,SALARY NUMBER,MANAGER NUMBER,TITLE VARCH
AR2,COMMISSION NUMBER,DEPARTMENT NUMBER) AS
2 BEGIN
3 DBMS_APPLICATION_INFO.SET_MODULE(MODULE_NAME=> 'ADD_EMPLOYEE', ACTION_NAME=>'INSERT INTO EMP');
4 INSERT INTO EMP(EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) VALUES(EMP_SEQ.NEXTVAL,NAME,TITLE
,MANAGER,SYSDATE,SALARY,COMMISSION,DEPARTMENT);
5 DBMS_APPLICATION_INFO.SET_MODULE('' , '');
6 END
7
8 ;
9 /
Procedure created.
EXEC ADD_EMPLOYEE (EMP_SEQ.NEXTVAL,'MOHAN1', 'SYSTEM',7902,TO_DATE('17-DEC-1980','DD-MON-YYYY')
, 800,NULL, 20);
BEGIN ADD_EMPLOYEE (EMP_SEQ.NEXTVAL,'MOHAN1', 'SYSTEM',7902,TO_DATE('17-DEC-1980','DD-MON-YYYY'), 80
ERROR at line 1:
ORA-06550: line 1, column 29:
PLS-00357: Table,View Or Sequence reference 'EMP_SEQ.NEXTVAL' not allowed in
this context
ORA-06550: line 1, column 7:
PL/SQL: Statement ignoredThe input parameters that are listed in the procedure and the input parameters that you pass to the procedure when you execute it have to be in the same order. Also, you should not try to pass emp_seq.NEXTVAL or SYSDATE to the procedure. In the following, I changed the order of the input parameters to match the order of the parameters you were passing to it. I also removed the emp_seq.NEXTVAL and the date from the list of parameters passed to the procedure upon execution.
CREATE SEQUENCE emp_seq
START WITH 800
INCREMENT BY 1
MAXVALUE 1000
Sequence created.
CREATE OR REPLACE PROCEDURE add_employee
(name VARCHAR2,
title VARCHAR2,
manager NUMBER,
salary NUMBER,
commission NUMBER,
department NUMBER)
AS
BEGIN
DBMS_APPLICATION_INFO.SET_MODULE
(MODULE_NAME => 'ADD_EMPLOYEE',
ACTION_NAME => 'INSERT INTO EMP');
INSERT INTO EMP
(empno,
ename,
job,
mgr,
hiredate,
sal,
comm,
deptno)
VALUES
(emp_seq.NEXTVAL,
name,
title,
manager,
SYSDATE,
salary,
commission,
department);
DBMS_APPLICATION_INFO.SET_MODULE ('' , '');
END add_employee;
Procedure created.
SHOW ERRORS
No errors.
EXECUTE add_employee ('MOHAN1', 'SYSTEM', 7902, 800, NULL, 20)
PL/SQL procedure successfully completed. -
Pass table name as parameter PLS-00357
create or replace
PROCEDURE universal_p (
tab IN VARCHAR2,
col IN VARCHAR2,
whr IN VARCHAR2 := NULL)
IS
TYPE cv_type IS REF CURSOR;
cv cv_type;
val VARCHAR2(32767);
BEGIN
OPEN cv FOR
'SELECT ' || col ||
' FROM ' || tab ||
' WHERE ' || NVL (whr, '1 = 1');
LOOP
FETCH cv INTO val;
EXIT WHEN cv%NOTFOUND;
IF cv%ROWCOUNT = 1
THEN
DBMS_OUTPUT.PUT_LINE (RPAD ('-', 60, '-'));
DBMS_OUTPUT.PUT_LINE (
'Contents of ' ||
UPPER (tab) || '.' || UPPER (col));
DBMS_OUTPUT.PUT_LINE (RPAD ('-', 60, '-'));
END IF;
DBMS_OUTPUT.PUT_LINE (val);
END LOOP;
CLOSE cv;
END;
WHEN I CALL THIS PROCEDURE I got error messasge
ORA-06550: Table,View Or Sequence reference not allowed in this context.
PLS-00357:
Can anyone can help me, please ?
WHEN
Edited by: user6446424 on 11.3.2010 13:59Works for me:
SQL> create or replace
2 PROCEDURE universal_p (
3 tab IN VARCHAR2,
4 col IN VARCHAR2,
5 whr IN VARCHAR2 := NULL)
6 IS
7 TYPE cv_type IS REF CURSOR;
8 cv cv_type;
9 val VARCHAR2(32767);
10 BEGIN
11 OPEN cv FOR
12 'SELECT ' || col ||
13 ' FROM ' || tab ||
14 ' WHERE ' || NVL (whr, '1 = 1');
15
16 LOOP
17 FETCH cv INTO val;
18 EXIT WHEN cv%NOTFOUND;
19 IF cv%ROWCOUNT = 1
20 THEN
21 DBMS_OUTPUT.PUT_LINE (RPAD ('-', 60, '-'));
22 DBMS_OUTPUT.PUT_LINE (
23 'Contents of ' ||
24 UPPER (tab) || '.' || UPPER (col));
25 DBMS_OUTPUT.PUT_LINE (RPAD ('-', 60, '-'));
26 END IF;
27 DBMS_OUTPUT.PUT_LINE (val);
28 END LOOP;
29
30
31 CLOSE cv;
32 END;
33
34 /
Procedure created.
SQL> exec universal_p('EMP','ENAME')
Contents of EMP.ENAME
SMITH
ALLEN
WARD
JONES
MARTIN
BLAKE
CLARK
SCOTT
KING
TURNER
ADAMS
JAMES
FORD
MILLER
PL/SQL procedure successfully completed.
SQL> select * from v$version
2 ;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - ProductionMax
http://oracleitalia.wordpress.com
Maybe you are looking for
-
JTabbedPane: Exception occurred during event dispatching:
Hi, I have a JTabbedPane where the tabs can be added dynamically by the method: private void addNewTab(JTable aTable) throws java.lang.NullPointerException final JTable t = aTable; Thread addTab = new Thread() public void run() JScrollPane scroller =
-
After 4.2 update movie file icon is picture-less
I want my OS 4.1 back on my ipt4 and Ipad. How do I go back? Thanks.
-
Command + T not working??!!
Hello all. Just updated my PowerBook 12" to the latest Tiger update, everything is fine until when I am in Safari, to add a new Tab window, when I hit 'Command + T' keys, the Alert sounds off and nothing happens... Something I miss somewhere?? Thanks
-
Missing packages in the 11/06 Companion CD?
I received my 11/06 free Solaris 10 DVD a while ago and went to download the Companion DVD as according to this site http://www.sun.com/software/solaris/freeware/ it has the MySQL-Python module. It doesn't and it's not available as a downloadable pac
-
My home button does not respond sometimes
My home button on my iPhone 4 is unresponsive half the time. Help!