PLS-00231: error function
version: Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - Productiondeclare
v_mail_cust_code maz_sr_au_incentive_cust_hist.mail_cust_code%type;
function inc_uniq_code
return varchar2
is
v_unique_code maz_sr_au_incentive_cust_hist.mail_cust_code%type;
Boolean v_unique: = FALSE;
number of v_count;
Start
all in v_unique! = TRUE
loop
Select to_char (round (dbms_random.value (1000000,9999999))) in the double v_unique_code;
Select count (*) in the maz_sr_au_incentive_cust_hist v_count
where rtrim (mail_cust_code) = v_unique_code;
If v_count = 0 then
v_unique: = TRUE;
end if;
end loop;
Return v_unique_code;
end inc_uniq_code;
Start
Select inc_uniq_code in the double v_mail_cust_code;
dbms_output.put_line ('inc_uniq_code: ' | v_mail_cust_code);
end;
error:
*************
ORA-06550: line 22, column 8:
PLS-00231: function 'INC_UNIQ_CODE' cannot be used in SQL
ORA-06550: line 22, column 8:
PL/SQL: ORA-00904: "INC_UNIQ_CODE": invalid identifier
ORA-06550: line 22, column 1:
PL/SQL: SQL statement ignored
Can anyone help?
Thank you
Rambeau
This will be triggered through back-end work, users aren't all there for these requirements.
We have suggested to use the sequence number, but professional user insisted to have a unique random number, the main work is the only one that calls this function.
I think, therefore, it should not be a problem with the generation random unique number. >
Why does make a difference that she is called from a work of "back-end" or that users are not present during the loading process?
In any case, in case it wasn't clear from the comments you have received to date, you can not count the rows in a table as part of an operation that modifies data, because it is for an indefinite period, not to mention unsecure threads.
I think the reasoning underlying the requirement is that perhaps the company doesn't want anyone to see the order in which files or folders have been loaded, and a sequence that would give away.
Tags: Database
Similar Questions
-
PLS-00231 - function cannot be used in SQL
Morning you all,.
Please, don't ask me not to do this kind of function, because I cut the pieces that are not important information to my question. Thank you.
Package:
function PL_Fun)
P_COD1 IN VARCHAR2,
P_COD2 NUMBER,
P_COD3 NUMBER) RETURN VARCHAR2;
PROCEDURE PL_Prod (P_CURSOR1 ON C_RETURN);
Package body:
Function PL_Fun)
P_COD1 IN VARCHAR2,
P_COD2 NUMBER,
P_COD3 NUMBER) RETURN VARCHAR2 AS
SALIDA VARCHAR2 (3000);
BEGIN
Salida: ='XXXXX1; YYYYY1; S |
XXXXX2; YYYYY2; S |
XXXXX3; YYYYY3; S |
XXXXX41; YYYYY4; S |' ;
RETURN of SALIDA;
END PL_FUN;
PROCEDURE PL_Prod (P_CURSOR1 ON C_RETURN) IS
nothing exceptional;
V_CODERROR VARCHAR2 (3);
V_DESERROR varchar2 (300);
BEGIN
OPEN FOR P_CURSOR1
SELECT PL_Fun (table1.v_cod1, )
table1.v_cod2,
table1.v_cod3) as description
FROM TABLE1;
EXCEPTION
When is nothing THEN
V_CODERROR: = '001';
V_DESERROR: = 'nothing. '
RAISE_APPLICATION_ERROR (-20000
V_CODERROR | ':' || V_DESERROR
);
WHILE OTHERS THEN
V_CODERROR: = 'SQL ';
V_DESERROR: =.
«ERROR ON PL_Fun (' |)» SQLCODE. ') ' || SUBSTR (SQLERRM
1
300
);
RAISE_APPLICATION_ERROR (-20000
V_CODERROR | ':' || V_DESERROR);
END PL_Prod;
Error:
Error: PLS-00231: function 'PL_Fun' is not usable in SQL
Text:, PL_Fun (P_COD_1, P_COD_2, P_COD_3) as description
Error: PL/SQL: ORA-00904: invalid identifier
Text:, PL_Fun (P_COD_1, P_COD_2, P_COD_3) as description
Error: PLS-00323: subprogram or cursor "PL_Fun" is declared in a package specification and must be defined in the package body
Text :);
What I'm trying?
Like ask Tom reffers, I changed the position of the packet body,
From:
Function PL_Fun ();
PROCEDURE PL_Prod;
TO:
PROCEDURE PL_Prod;
Function PL_Fun ();
But it did not work. I have the same problem.
And, as I read on another forum, I used the PRAGMA RESTRICT_REFERENCES like the following, but it doesn't work either:
CREATING a PACKAGE LIKE xxxx
Function PL_Fun)
P_COD1 IN VARCHAR2,
P_COD2 NUMBER,
P_COD3 NUMBER) RETURN VARCHAR2;
RESTRICT_REFERENCES PRAGMA (PL_Fun, WNDS, WNPS);
PROCEDURE PL_Prod (P_CURSOR1 ON C_RETURN);
END xxxx;
Any suggestions?
Thank you guys.
Finally... solved. Break for a cup of coffee and lunch... and there's the problem: the function parameters where the same is called not on the statement and the area of the body area. The problem was just a letter. However, none of us (team work) noticed.
Sorry for that and I THANK YOU all for your patience.
-
Pipeline table function compile (PLS-00222: no function name)
Hello
Trying to stuff a call to v$ sql in a function and are unable to compile:
results increate or replace package p is type s_row is record(sql_id v$sql.sql_id%type ,child_number v$sql.child_number%type ,hash_value v$sql.hash_value%type ,address v$sql.address%type ,executions v$sql.executions%type ,sql_text v$sql.sql_text%type); type rows_tt is table of s_row; function vsql (sqltext IN varchar2 DEFAULT '%zz%') return rows_tt pipelined; end; / show errors create or replace package body p is function vsql (sqltext IN varchar2 DEFAULT '%zz%') return rows_tt pipelined is begin for rec in (select /* recentsql*/ sql_id , child_number , hash_value , address , executions , sql_text from v$sql where sql_text like sqltext and upper(sql_text) not like upper('%recentsql%')) loop pipe row(s_row ( rec.sql_id , rec.child_number , rec.hash_value , rec.address , rec.executions , rec.sql_text)); end loop; return; end; end; / show errors
What I am doing wrong?HR@XE> @vsql Package created. No errors. Warning: Package Body created with compilation errors. Errors for PACKAGE BODY P: LINE/COL ERROR -------- ----------------------------------------------------------------- 18/17 PL/SQL: Statement ignored 18/26 PLS-00222: no function with name 'S_ROW' exists in this scope HR@XE>
Thank you
JasonDocuments have no constructors. Change:
pipe row(s_row ( rec.sql_id , rec.child_number , rec.hash_value , rec.address , rec.executions , rec.sql_text));
TO:
pipe row(rec);
SY.
-
PLS-00630: pipeline functions must have a collection of supported return type
Hello, I created a TYPE of OBJECT and function PLSQL as shown below, but the function compile errors with that follows. Don't know where is the problem?
It's about Oracle 10 g r2PLS-00630: pipelined functions must have a supported collection return type
and here are the APICREATE OR REPLACE TYPE cxs_plsql_profiler_object_type AS OBJECT ( cxs_object_name VARCHAR2 (128), cxs_object_type VARCHAR2 (19), cxs_object_status VARCHAR2 (7), cxs_read_execution NUMBER, cxs_buffer_gets NUMBER, cxs_disk_reads NUMBER, cxs_executions NUMBER, cxs_sorts NUMBER, cxs_sharable_mem NUMBER, cxs_address NUMBER, cxs_hashvalue NUMBER, cxs_osuser VARCHAR2 (30), cxs_username VARCHAR2 (30), cxs_module VARCHAR2 (48), cxs_machine VARCHAR2 (64), cxs_status VARCHAR2 (8), cxs_terminal VARCHAR2 (16), cxs_percentconsume NUMBER, cxs_percentrepeat NUMBER, cxs_plan VARCHAR2 (120), target_name VARCHAR2 (200), referenced_name VARCHAR2 (200), referenced_type VARCHAR2 (200), targetowner VARCHAR2 (200), refowner VARCHAR2 (200) )
and here's tradtional types of tables that are used in the code above.FUNCTION CXS_GENERATE_PLSQL_PROFILER RETURN cxs_plsql_profiler_object_type PIPELINED IS out_rec cxs_plsql_profiler_object_type ; plsbatch plsql_batch; skount integer; dpendrec depend_tab; dkount integer; CURSOR objects IS SELECT object_name, object_type FROM dba_objects WHERE status = 'VALID' AND owner NOT IN ('SYS', 'SYSTEM') AND object_type IN ('PACKAGE', 'PROCEDURE', 'FUNCTION'); CURSOR apis (p_object dba_objects.object_name%TYPE) IS SELECT DISTINCT * FROM (SELECT SUBSTR (a.sql_text, 1, 50) sql_text, TRUNC ( a.disk_reads / DECODE (a.executions, 0, 1, a.executions ) ) reads_per_execution, a.buffer_gets, a.disk_reads, a.executions, a.sorts, a.sharable_mem, a.address, a.hash_value, b.osuser, b.username, b.module, b.machine, b.status, b.terminal, ROUND (cxs_db_info.kompute_percentofsql (a.sharable_mem), 5 ) percentkonsume, cxs_db_info.kount_repeat (b.osuser, b.terminal ) percentr, c.operation explainplan FROM v$sqlarea a, v$session b, v$sql_plan c WHERE b.sql_hash_value = a.hash_value AND b.sql_address = a.address AND a.hash_value = c.hash_value AND a.address = c.address AND b.status = 'ACTIVE' AND UPPER (a.sql_text) LIKE '%' || p_object || '%' AND c.ID = 0 ORDER BY 2 DESC) WHERE ROWNUM <= 50; --profile option BEGIN skount := 0; dkount := 0; FOR i IN objects LOOP FOR j IN apis (i.object_name) LOOP skount := skount + 1; plsbatch(skount).cxs_object_name := i.object_name; plsbatch(skount).cxs_object_type := i.object_type; plsbatch(skount).cxs_object_status := i.object_status; plsbatch(skount).cxs_read_execution := j.reads_per_execution; plsbatch(skount).cxs_buffer_gets := j.buffer_gets; plsbatch(skount).cxs_disk_reads := j.disk_reads; plsbatch(skount).cxs_executions := j.executions; plsbatch(skount).cxs_sorts := j.sorts; plsbatch(skount).cxs_sharable_mem := j.sharable_mem; plsbatch(skount).cxs_address := j.address; plsbatch(skount).cxs_hashvalue := j.hashvalue; plsbatch(skount).cxs_osuser := j.osuser; plsbatch(skount).cxs_username := j.username; plsbatch(skount).cxs_module := j.module; plsbatch(skount).cxs_machine := j.machine; plsbatch(skount).cxs_status := j.status; plsbatch(skount).cxs_terminal := j.terminal; plsbatch(skount).cxs_percentconsume := j.percentconsume; plsbatch(skount).cxs_percentrepeat := j.percentrepeat; plsbatch(skount).cxs_plan := j.explainplan; END LOOP; FOR dd IN dpend (i.object_name) LOOP dkount := dkount + 1; dependrec (dkount).target_name := dd.NAME; dependrec (dkount).refname := dd.referenced_name; dependrec (dkount).reftype := dd.referenced_type; dependrec (dkount).target_owner := dd.owner; dependrec (dkount).refowner := dd.referenced_owner; END LOOP; END LOOP; for a in 1..skount loop out_rec.cxs_object_type := plsbatch(a).object_type; out_rec.cxs_object_status := plsbatch(a).object_status; out_rec.cxs_read_execution := plsbatch(a).reads_per_execution; out_rec.cxs_buffer_gets := plsbatch(a).buffer_gets; out_rec.cxs_disk_reads := plsbatch(a).disk_reads; out_rec.cxs_executions := plsbatch(a).executions; out_rec.cxs_sorts := plsbatch(a).sorts; out_rec.cxs_sharable_mem := plsbatch(a).sharable_mem; out_rec.cxs_address := plsbatch(a).address; out_rec.cxs_hashvalue := plsbatch(a).hashvalue; out_rec.cxs_osuser := plsbatch(a).osuser; out_rec.cxs_username := plsbatch(a).username; out_rec.cxs_module := plsbatch(a).module; out_rec.cxs_machine := plsbatch(a).machine; out_rec.cxs_status := plsbatch(a).status; out_rec.cxs_terminal := plsbatch(a).terminal; out_rec.cxs_percentconsume := plsbatch(a).percentconsume; out_rec.cxs_percentrepeat := plsbatch(a).percentrepeat; out_rec.cxs_plan := plsbatch(a).explainplan; PIPE ROW(out_rec); end loop; for b in 1..dkount loop out_rec.target_name := dd.NAME; out_rec.refname := dependrec (b).referenced_name; out_rec.reftype := dependrec (b).referenced_type; out_rec.target_owner := dependrec (b).owner; out_rec.refowner := dependrec (b).referenced_owner; PIPE ROW(out_rec); end loop; RETURN; EXCEPTION WHEN OTHERS THEN DBMS_OUTPUT.PUT_LINE(DBMS_UTILITY.format_error_backtrace); DBMS_OUTPUT.PUT_LINE(SQLCODE); DBMS_OUTPUT.PUT_LINE(SQLERRM); END;
Thank you for your time in reading this postTYPE type_plsql_rec IS RECORD ( cxs_object_name VARCHAR2 (128), cxs_object_type VARCHAR2 (19), cxs_object_status VARCHAR2 (7), cxs_read_execution NUMBER, cxs_buffer_gets NUMBER, cxs_disk_reads NUMBER, cxs_executions NUMBER, cxs_sorts NUMBER, cxs_sharable_mem NUMBER, cxs_address NUMBER, cxs_hashvalue NUMBER, cxs_osuser VARCHAR2 (30), cxs_username VARCHAR2 (30), cxs_module VARCHAR2 (48), cxs_machine VARCHAR2 (64), cxs_status VARCHAR2 (8), cxs_terminal VARCHAR2 (16), cxs_percentconsume NUMBER, cxs_percentrepeat NUMBER, cxs_plan VARCHAR2 (120) ); TYPE plsql_batch IS TABLE OF type_plsql_rec INDEX BY BINARY_INTEGER; TYPE type_depend_tab IS RECORD ( target_name dba_dependencies.NAME%TYPE, refname dba_dependencies.referenced_name%TYPE, reftype dba_dependencies.referenced_type%TYPE, target_owner dba_dependencies.owner%TYPE, refowner dba_dependencies.referenced_owner%TYPE ); TYPE depend_tab IS TABLE OF type_depend_tab INDEX BY BINARY_INTEGER;
RJohan says:
Sorry!.
Actually, I meant
I thought as well.
Typos can be expensive however. As a probe of NASA Mars in 99, which was lost due to a simple mathematical error - a confusion between English and metric units. ;-)
Or screw up a server in reason to use a Unix fork() where the client process think that it is the parent and the beginning more children who believe they are also parents of spawning... (one of my mistakes of kewlest never) :-)
-
Error "function not allowed for the license.
Hi all
I get error "Function not allowed for license" when I'm collecting details of a custom user interface card.
The user interface card called a Business Service that calls a service program.
I wrote a page for the service program service.
This error indicates which license?
I use the BCC 2.3.1 and Eclipse SDK 2.2.0.5.Check the Admin Menu-> Installation Options framework-> Modules available to see if any module is disabled.
Then go to the Menu Admin-> Configuration-> Feature Type = Module of Configuration feature and delete an entry of a module where the power is off.
Try again the user interface card
-
XQuery question fn:error function
People,
I want to use the integrated XQuery my custom XQuery function error function & propagate them to the OSB failure mechanism and was trying to do: -.
MyCustomXQuery.xq
declare function local: doesntContainDefaultValue ($siebelMessage1 as element(ns4:SiebelMessage), $processLineItem1 as element (ns1:processLineItem)) as XS: Boolean))
{
for $cmplxPrdtStructure in $siebelMessage1/ns4:ListOfVfProductOptions/ns4:InternalProduct/ns4:ListOfComplexProductStructureBuscomp/ns4:ComplexProductStructureBuscomp/ns4:ListOfComplexProductXaAttributeValueBuscomp/ns4:ComplexProductXaAttributeValueBuscomp
for $pdtLineItem in $processLineItem1 / ns1:LineItem / ns1:Product
where $cmplxPrdtStructure / ns4 = $pdtLineItem/ns1:lineItem/ns1:product/@ID:SAMProductId/text()
and $pdtLineItem /:lineItem/ns1:product/ns1:attribute/ns1:name/text() = $cmplxPrdtStructure ns1 / ns4:DisplayName/text()
and exists($pdtLineItem/ns1:lineItem/ns1:product/ns1:attribute/ns1:name)
and empty($cmplxPrdtStructure/ns4:DefaultValue)
and $cmplxPrdtStructure / ns4:Required/text() = 'Y '.
return
error ("'genericBusinessFault', ' consumer passed incomplete details to process the product")
};
Gives me a compilation error-
Line 76, column 13: {err} XP0004, invalid static type: string {http://www.w3.org/XMLSchema}
Any ideas what's not here? I use function error correctly?
Thank you
BuxantSee w3c doc: http://www.w3.org/TR/xpath-functions/#func-error on a valid signature for error().
The first argument must be a QName.
FN:Error() because none
FN: Error($Error As XS:QName) as none
FN: Error($Error As XS:QName?, $description As XS:String) as none
FN: Error ($error as XS: QName?,)
$description as XS: String.
($error - object as item() *) as noneExamples
1 fn:error() returns http://www.w3.org/2005/xqt-errors#FOER0000 (or the corresponding XS: QName) to the external processing environment.2 fn:error (fn:QName('http://www.example.com/HR',_'myerr:toohighsal'), "Does not apply because salary is too high") returns http://www.example.com/HR#toohighsal and the XS: String "does not apply because salary is too high" (or the corresponding XS: QName) to the external processing environment.
Concerning
Carina -
Populating list right shuttle - PLS-00372 error
Dear experts! Today, I need to set up a list of shuttle to update, insert, and delete data.
I created my shuttle and a process page (before the region) which is supposed to fill the right side of the shuttle with the data.
While the shuttle itself works perfectly, the process to fail with an error PLS-00372-> RETURN statement cannot contain an expression
Just, I don't understand what I missed. The values of the Shuttle are strings, and my code is as follows:
P3_USER is a part of the of the region that holds the shuttle.DECLARE vAREA APEX_APPLICATION_GLOBAL.VC_ARR2; i NUMBER := 1; BEGIN FOR c IN (SELECT DISTINCT LNG_GEBIET FROM TBL_USER_CONTROL WHERE LNG_USER = :P3_USER) LOOP vAREA(i) := c.LNG_GEBIET; i := i + 1; END LOOP; RETURN APEX_UTIL.TABLE_TO_STRING(vAREA,':'); END;
Please can you me whatelse I have to consider?
Thank you very much and besrt cordially,
SEBHello
If I understand correctly, you need
DECLARE vAREA APEX_APPLICATION_GLOBAL.VC_ARR2; i NUMBER := 1; BEGIN FOR c IN (SELECT DISTINCT LNG_GEBIET FROM TBL_USER_CONTROL WHERE LNG_USER = :P3_USER) LOOP vAREA(i) := c.LNG_GEBIET; i := i + 1; END LOOP; :Px_MY_SHUTTLE := APEX_UTIL.TABLE_TO_STRING(vAREA,':'); END;
Replace Px_MY_SHUTTLE with your name of the shuttle.
If you are PL/SQL type, he cannot return anything.If you want to use the function, then place your code of calculation and select the correct type of "body of the PL/SQL function.
BR, Jari
-
Hi can someone tell me what is wrong in the code of function below? His compilation error
structure Type and table are lower to create the same function.
SQL> desc tt Name Null? Type ----------------------------------------- -------- ------------------------- NO NUMBER NAME VARCHAR2(20) SQL> select * from tt; NO NAME ---------- -------------------- 30 WSS 40 SYS 10 WSS 20 SYS create or replace type tt_typ as object (no number, name varchar2(20)); create or replace type rec_tt_type as table of tt_typ; / Type created. create or replace function fn1 return rec_tt_type pipelined as table_tt tt%rowtype; var_tt tt%rowtype; cursor c1 is select * from tt; begin open c1; loop fetch c1 into table_tt; execute immediate ' select no, name from tt where no = :1' into var_tt using table_tt.no; pipe row(var_tt); end loop; return; end; / sho err; Errors for FUNCTION FN1: LINE/COL ERROR -------- -------------------------------------------- 23/3 PL/SQL: Statement ignored 23/12 PLS-00382: expression is of wrong type SQL>
SQL> create table tt as select 30 no, 'WSS' name from dual union all select 40 no, 'SYS' name from dual union all select 10 no, 'WSS' name from dual union all select 20 no, 'SYS' name from dual / Table created. SQL> create or replace type tt_typ as object (no number, name varchar2 (20)); / Type created. SQL> create or replace type rec_tt_type as table of tt_typ; / Type created. SQL> create or replace function fn1 return rec_tt_type pipelined as cursor c1 is select * from tt; table_tt c1%rowtype; var_tt c1%rowtype; begin open c1; loop fetch c1 into table_tt; exit when c1%notfound; execute immediate ' select no, name from tt where no = :1 ' into var_tt using table_tt.no; pipe row (tt_typ (var_tt.no, var_tt.name)); end loop; return; end fn1; / Function created. SQL> select * from table (fn1) / NO NAME ---------- -------------------- 30 WSS 40 SYS 10 WSS 20 SYS 4 rows selected.
-
Satellite Pro A120 - error function keys not working and affected
I have a Satellite Pro A120 PSAC1E-04Q00VEN.
A couple of weeks, I started to have a dialog "Error of TouchED" to come to the start box (containing the message: 'Thotkey' recovery has no code error 0 X 00031402, 0x00000002) and at the same time the function keys did not work.
I spent several hours as a result of the wide variety of questions that have been posted on this forum and elsewhere regarding this problem with computers laptop Toshiba, but nothing has worked. I reinstalled all the drivers from my initial backup disk, installed new drivers on the Toshiba site, updated the bios and restored the system to date before the problem started to occur. I also can't find Thotkey.exe everywhere on my machine.
Can anyone help with this? It seems to be a common problem, for which he doesn't seem to be a definitive answer. Any useful response would be really appreciated.
David
Hey Buddy
Go to the page of European driver of Toshiba.
Select your laptop model and download and reinstall the tools and the following drivers:
-Common module
-Utilities for display devices Hotkey
-Utilities
-Wireless keyboard shortcutCheck it out!
-
utility library error function string?
I'm working on a library Error Handler, slaughtered most of these wonderful for a (Roberto!). I can't find a generator of string of code error for the functions in the library of good content (in particular, functions like RenameFile, CopyFile, GetDir, SetDir, MakeDir, all file IO functions).
Most people refer to types of maximum error tolerated with some explanations of plain text. But there is no mention of a nice string code converter function, as it is in other libraries. For example, for the RS232 library, there are GetRS232ErrorString. Formatting & IO Library, there is GetFmtIOErrorString.
I don't see it somewhere? Inside the library of utilities, there is a function called CmtGetErrorMessage multithreaded error code.
You are right: the library of Urility does not include a function that translates into a meaningful text error codes. I guess that it is due to the fact that error codes overlap in part, so a single function could not be used.
For example, the-1 error means file not found in almost all file IO Library functions, but it translates into no file found matching the criteria of research GetFirstFile (), for not more files in GetNextFiles () and invalid parameters in MakePathname ().
Another example: error-2 means GetFirstFile must be called before if returned by GetNextFile () and resulting path too long if returned by MakePathname ().
And cela given that e/s file section of the library!
While developing my own toolbox of utilities, I created the following function I know is far from perfect and covers only the file IO features:
char * CVIFUNC GetULibFileIOErrMsg (int error) // Messages associated to error codes returned by functions in File Utilities class in Utility Library { switch (error) { case 0: return "Success"; case -1: return "One of the path component not found"; case -2: return "Resulting pathname longer than 260 chars"; case -3: return "General I/O error occurred"; case -4: return "Insufficient memory to complete operation"; case -5: return "Invalid path"; case -6: return "Access denied"; case -7: return "Specified path is a directory, not a file"; case -8: return "Disk is full"; case -9: return "New file already exists"; default: return "Unknown error"; } return NULL; }
-
Error function not valid advapi32.dll on startup?
asking again as my first accepts match failed.
XP SP3 IE8 4 gig, amd phenom II 840 RAM
No error of harware in Device Manager.
I ran security scans, ad scans and antivrus sweeps, nothing helps.
Reinstalled SP3 I found the only copy of functioning of the ADVAPI32. DLL in the subdirectory of MS and may not perform repair or reinstall from the disc with Service Pack 3 installed. This eliminated the problem and speeded up things a little for about 12 hours and then restart in the morning, everything went hiccups again.
the biggest annoyance is that almost every program or file, I used to open immediately now takes more than 15 seconds.
I have cleared the cache, temp files, uninstall files, and listen to the system with the cleaning disk, defragmentation, scandisk and other similar things. other missalligned files is nothing major to come several times.
im hoping to spare me the gig to reinstall if possible.
any help would be appreciated.
Thanks in advance.
Marking of one (or more) of my answers as RESPONSE will officially close your thread.
-
Error: Function of ms - dos invalid when copying on external drive with Windows 7
FUNCTION OF MS BACK INVALID WHEN PLAYBACK EXTERNAL DRIVE WITH WIN 7
Hello
1. you try to save a data of the C drive on an external hard drive using the Windows backup feature?
2 does this problem occur when you try to copy / paste normally?
3. What is the accurate and complete error message?If you try to copy and paste the data manually, then try the fix to resolve the problem: -
I have the following question
Code:
FUNCTION FN_FME_RPAD
(
p_s_cadena in TANK,
) RETURN VARCHAR2 IS
v_c_Space VARCHAR2 (32767).
BEGIN
v_c_Space: = LPAD (p_s_cadena, 10, 'x');
RETURN SUBSTR (v_c_Space)
END;
variable: = FN_FME_RPAD (p_s_cadena = > 'tricampeon_1981'); OK, that works perfectly ok
from there, it gives me error
Select FN_FME_RPAD (p_s_cadena = > name)-fails here
in results
of the customer;
within the selection it gives me error pass by reference, but here works well
Select FN_FME_RPAD (name) - it's ok
in results
of the customer;
Then? This is what Solomon and I said... before 11 that does not allow notation named for the function parameters in sql...
-
-Error function of incompatible data types
Hi all
I created a function that will take 3 IN parameters and return the result in type. Here's the code.
Created a table type:
{code}
CREATE OR REPLACE TYPE FEATURES_ROW_TYPE
AS AN OBJECT
(VARCHAR2 (100) OF THE ENVIRONMENT)
MNR VARCHAR2 (100),
GUID VARCHAR2 (100),
USER_ID VARCHAR2 (1000).
RGN VARCHAR2 (100),
RGN_NM VARCHAR2 (5000).
FEATURE_NAME VARCHAR2 (5000).
DATE OF LAST_SIGON_DATE
);
CREATE OR REPLACE TYPE FEATURES_TABLE_TYPE
AS THE FEATURES_ROW_TYPE TABLE;
{code}
Here's the function:
{code}
CREATE OR REPLACE FUNCTION FETCH_FEATURES_FN (P_ENVIRONMENT IN VARCHAR2,
P_FEATURE_ID NUMBER,
P_RGN IN VARCHAR2
)
RETURN FEATURES_TABLE_TYPE
IS
V_ROWS FEATURES_TABLE_TYPE: = FEATURES_TABLE_TYPE ();
V_CUR_ENV VARCHAR2 (100);
V_ENV VARCHAR2 (50);
V_WHERE VARCHAR2 (1000);
V_SQL VARCHAR2 (10000);
BEGIN
V_ENV: = '@DBL_ ' | P_ENVIRONMENT;
V_CUR_ENV: = P_ENVIRONMENT;
IF P_RGN = "ALL" THEN
V_WHERE: = ' WHERE FD. WPP_FTR_IK = ' | P_FEATURE_ID;
ON THE OTHER
V_WHERE: = ' WHERE FD. WPP_FTR_IK = ' | P_FEATURE_ID | "AND FD. RGN = ' | '''' || P_RGN | '''';
END IF;
V_SQL: =.
"WITH USER_DATA ' | ' ' ||
"ACE" | ' ' ||
' (SELECT DISTINCT EB. GUID, AD. USER_ID_ACCT_AFFECTED AS USER_ID, MAX (TRANSACTION_TS) AS LAST_SIGNON_DATE ' | ' ' ||
"TO WPP_EBIZ_ACCT" | V_ENV | ' EB' || ' ' ||
"INNER JOIN WPP_SECURITY_AUDIT_LOG | V_ENV | ' AD' || ' ' ||
' ON EB. GUID = AD. USER_UNIQUE_ID_ACCT_AFFECTED ' | ' ' ||
' WHERE AD. APP_NAME = "consumer" AND AD. TRANSACTION_TYPE_CD = "SIGN_ON" AND AD. FEATURE_NAME = "sign" AND AD. TRANSACTION_RESULT_CD = "S" ' | ' ' ||
' GROUP BY EB. GUID, AD. USER_ID_ACCT_AFFECTED ' | ' ' ||
'), ' || ' ' ||
"FEATURE_DATA" | ' ' ||
'AS ' || ' ' ||
"(MY SEPARATE SELECT." MNR, EB. GUID, MY. RGN, RGN. RGN_NM, FTR. WPP_FTR_IK, FTR. NM AS FEATURES_SUPPORTED ' | ' ' ||
"TO WPP_MBRSHP_ACCT" | V_ENV | "MY" | ' ' ||
"INNER JOIN WPP_EBIZ_ACCT | V_ENV | ' EB WE MY. WPP_EBIZ_ACCT_IK = EB. WPP_EBIZ_ACCT_IK' | ' ' ||
"INNER JOIN WPP_RGN | V_ENV | «RGN WE MY.» RGN = RGN. RGN_ID ' | ' ' ||
"INNER JOIN WPP_RGN_APLCTN_STS | V_ENV | ' RGN_ST ON RGN_ST. RGN_ID = RGN. RGN_ID ' | ' ' ||
"INNER JOIN WPP_FTR_APLCTN | V_ENV | ' FTR_APP ON FTR_APP. WPP_FTR_APLCTN_IK = FTR_APP. WPP_FTR_APLCTN_IK ' | ' '||
"INNER JOIN WPP_FTR | V_ENV | "FTR ON FTR. WPP_FTR_IK = RDFS. WPP_FTR_IK' | ' ' ||
') ' || ' ' ||
"SELECT DISTINCT"HINT1"LIKE ENVIRONMENT, | ' ' ||
"FD. MNR, FD. GUID, UD. USER_ID, FD. RGN, FD. RGN_NM, FD. FEATURES_SUPPORTED ACE FEATURE_NAME, TO_DATE (TRUNC (UD. LAST_SIGNON_DATE)) AS LAST_SIGNON_DATE' | ' ' ||
"FROM FEATURE_DATA INNER JOIN USER_DATA UD ON FD FD. GUID = UD. GUID ' | ' ' || V_WHERE;
-DBMS_OUTPUT. PUT_LINE (V_SQL);
RUN IMMEDIATELY V_SQL
BULK COLLECT INTO V_ROWS;
RETURN V_ROWS;
END FETCH_FEATURES_FN;
{code}
When I tried to run as below.
SELECT * FROM TABLE (FETCH_FEATURES_FN ('HINT1', 2, 'ALL'));
but I get the error message
ORA-00932: inconsistent data types: expected - was -.
ORA-06512: at "KPGCPY. FETCH_FEATURES_FN', line 57
00932 00000 - ' incompatible data types: wait %s %s got. "
* Cause:
* Action:
Please guide to solve this problem.
Thank you
So after running actual query:
-DBMS_OUTPUT. PUT_LINE (V_SQL);
You said the line that will do.
Firstly - I suggest replace this long, complex query with a VERY SIMPLE one until your code actually works.
When you do this, you will see that the TYPE that you defined (FEATURES_ROW_TYPE) is NOT mentioned anywhere in your code.
You need create instances of this TYPE, then a collection of these instances.
Some EXAMPLES of code that shows what I mean by VERY SIMPLE and shows how interrogate instances of a TYPE in a collection
-type to match record emp
create or replace type emp_scalar_type as an object
(EMPNO NUMBER 4,
ENAME VARCHAR2 (10),
USE VARCHAR2 (9).
MGR NUMBER 4,
HIREDATE DATE,
NUMBER OF SAL (7, 2)
NUMBER OF COMM (7, 2)
DEPTNO NUMBER (2)
)
/
-records of the emp table
create or replace type emp_table_type to table of emp_scalar_type
/
declare
TB emp_table_type;
sys deptnoList. OdciNumberList;
BEGIN
Select emp_scalar_type (empno, ename, job, mgr, hiredate, sal, comm, deptno)
bulk collect into tb emp;
Collect SELECT deptno in bulk
IN deptnoList
DEPARTMENT where deptno not in (select deptno table (tb));
I'm looping 1.deptnoList.count
dbms_output.put_Line (deptnoList (i));
end loop;
END;
40
Try this code and work with it until you understand what makes each piece.
Select emp_scalar_type (empno, ename, job, mgr, hiredate, sal, comm, deptno)
bulk collect into tb emp;
See how this SIMPLE query creates instances of the EMP_SCALAR_TYPE and then use COLLECT in BULK to put them in the collection?
Modify your code to use a SIMPLE QUERY like in my example, until you get the code to work.
-
Hello Adobe
I created a homepage using Adobe Muse
& I posted it to [email protected] using muse.
And I'm warning sign saying "the appellant error selector function.
It's weird this message does not appear on Safari. It appears only on PC internet Explorer.
Can you help me please?
Link: [email protected]
Well, I found the problem... That's the problem with hyperlinks...
I got rid of them and its working great now
Thank you
Maybe you are looking for
-
LaserJet Pro M201dw: Remove the LaserJet Pro M201dw of ePrintCenter
I bought a printer LaserJet Pro M201dw I have installed the printer. I registered it to ePrintCenter. The next day, I had to return the printer for a refund. However, I did not remove the ePrintCenter printer (disable Web Services) before I returned
-
Mirror images, take pictures with A7-10
When I take a picture, shows the captured image as a mirror image, i.e. mailbox etc. appear as if looking in a mirror. How can I fix it?
-
Hello I just rebuilt a T410i with Windows XP Pro SP3, but could not find the driver for "pci data acquisition" and signal processing controller in device manager. What is this thing? I installed ALL the drivers for this laptop and still not get this
-
Mail provider blocking me to create additional accounts that I created 3 already.
original title: too many accounts? Hello I am trying to create an e-mail address for myself and my colleagues at work. I created 3 accounts so far but the sysytem crashes me to create another account. How can I get through the block? Thank you.
-
We have a hp laser jet m3022, does anyone know how to close the fax, transfer function? Thank you