ORA-06550 recieved when trying to modify existing page after 3.1 Apex upg
Hi,
I am getting the following when attempting to apply changes to a PL/SQL anonymous block. I was trying to add a clause to the query but have backed that out and can't even get the original query (with no changes) to pass.
note: I recently upgraded to version 3.1.0.00.32 of Apex and I believe this is the first time I have attempted to modify this page since the upgrade.
The specific error is below. I'm starting to wonder if I have hit some sort of character or number of lines limit.
ORA-06550: line 62, column 21: PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: ( begin case declare end exception exit for goto if loop mod null pragma raise return select update while with << continue close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe purge.
Here is the SQL in the anonymous pl/sql block:
select
TO_CHAR(sum((trade_buy_value(side)*shares*previous_close)),'FML999G000G000G000MI') mvb,
TO_CHAR(sum(trade_sell_value(side)*shares*previous_close), 'FML999G000G000G000MI') mvs,
TO_CHAR(sum(shares*previous_close), 'FML999G000G000G000MI') gross_mv,
TO_CHAR(sum(trade_buy_value(side)*previous_close*shares)
-sum(trade_sell_value(side)*previous_close*shares), 'FML999G000G000G000MI') net_mv,
TO_CHAR(sum(weight*gap_deviation), '00D0000MI')||'%' weighted_gap,
TO_CHAR(sum(buy_weight*gap_deviation), '00D0000MI')||'%' weighted_gap_buy,
TO_CHAR(sum(sell_weight*gap_deviation), '00D0000MI')||'%' weighted_gap_sell,
TO_CHAR(avg(gap_deviation), '00D0000MI')||'%' avg_gap,
TO_CHAR(min(gap_deviation), '00D0000MI')||'%' min_gap,
TO_CHAR(max(gap_deviation), '00D0000MI')||'%' max_gap,
TO_CHAR(sum(buy_weight*trade_day_deviation), '00D0000MI')||'%' weighted_td_dev_buy,
TO_CHAR(sum(sell_weight*trade_day_deviation), '00D0000MI')||'%' weighted_td_dev_sell,
TO_CHAR(sum(weight*trade_day_deviation), '00D0000MI')||'%' weighted_td_dev,
TO_CHAR(avg(trade_day_deviation), '00D0000MI')||'%' avg_td_dev,
TO_CHAR(min(trade_day_deviation), '00D0000MI')||'%' min_td_dev,
TO_CHAR(max(trade_day_deviation),'00D0000MI')||'%' max_td_dev,
TO_CHAR(sum(buy_weight*total_deviation), '00D0000MI')||'%' weighted_tot_dev_buy,
TO_CHAR(sum(sell_weight*total_deviation), '00D0000MI')||'%' weighted_tot_dev_sell,
TO_CHAR(sum(weight*total_deviation), '00D0000MI')||'%' weighted_tot_dev,
TO_CHAR(avg(total_deviation), '00D0000MI')||'%' avg_tot_dev,
TO_CHAR(min(total_deviation), '00D0000MI')||'%' min_tot_dev,
TO_CHAR(max(total_deviation), '00D0000MI')||'%' max_tot_dev,
TO_CHAR(sum(buy_weight*vwap_deviation), '00D0000MI')||'%' vwap_dev_buy,
TO_CHAR(sum(sell_weight*vwap_deviation), '00D0000MI')||'%' vwap_dev_sell,
TO_CHAR(sum(weight*vwap_deviation), '00D0000MI')||'%' vwap_tot_dev,
TO_CHAR(avg(vwap_deviation), '00D0000MI')||'%' avg_vwap_dev,
TO_CHAR(min(vwap_deviation), '00D0000MI')||'%' min_vwap_dev,
TO_CHAR(max(vwap_deviation), '00D0000MI')||'%' max_vwap_dev,
TO_CHAR(sum(buy_weight*close_deviation), '00D0000MI')||'%' close_dev_buy,
TO_CHAR(sum(sell_weight*close_deviation), '00D0000MI')||'%' close_dev_sell,
TO_CHAR(sum(weight*close_deviation), '00D0000MI')||'%' close_tot_dev,
TO_CHAR(avg(close_deviation), '00D0000MI')||'%' avg_close_dev,
TO_CHAR(min(close_deviation), '00D0000MI')||'%' min_close_dev,
TO_CHAR(max(close_deviation), '00D0000MI')||'%' max_close_dev,
TO_CHAR(SUM(ABS(buy_shares)), '999G999G999G999')||' shares' buy_shares,
TO_CHAR(SUM(ABS(sell_shares)), '999G999G999G999')||' shares' sell_shares,
TO_CHAR(SUM(ABS(shares)), '999G999G999G999')||' shares' tot_shares
into :P19_MARKET_VALUE_BUYS, :P19_MARKET_VALUE_SELLS, :P19_MARKET_VALUE_GROSS, :P19_MARKET_VALUE_NET,
:P19_GAP_DEV_TOTAL, :P19_GAP_DEV_BUYS, :P19_GAP_DEV_SELLS, :P19_GAP_DEV_AVG, :P19_GAP_DEV_MIN,
:P19_GAP_DEV_MAX, :P19_TD_DEV_BUYS, :P19_TD_DEV_SELLS, :P19_TD_DEV_TOTAL, :P19_TD_DEV_AVG,
:P19_TD_DEV_MIN, :P19_TD_DEV_MAX, :P19_TOT_DEV_BUYS, :P19_TOT_DEV_SELLS, :P19_TOT_DEV_TOT,
:P19_TOT_DEV_AVG, :P19_TOT_DEV_MIN, :P19_TOT_DEV_MAX, :P19_VWAP_BUYS, :P19_VWAP_SELLS, :P19_VWAP_TOT,
:P19_VWAP_AVG, :P19_VWAP_MIN, :P19_VWAP_MAX, :P19_CLOSE_BUYS, :P19_CLOSE_SELLS, :P19_CLOSE_TOT,
:P19_CLOSE_AVG, :P19_CLOSE_MIN, :P19_CLOSE_MAX, :P19_BUY_SHARES, :P19_SELL_SHARES, :P19_TOT_SHARES
from (
select
CASE when side='BUY' then shares else 0 end buy_shares,
CASE when side='SELL' then shares else 0 end sell_shares,
(ABS(previous_close*shares))/sum(ABS(denom_check(shares*previous_close))) over() weight,
(trade_buy_value(side)*ABS(previous_close*shares))/denom_check(sum(trade_buy_value(side)*ABS(shares*previous_close)) over()) buy_weight,
(trade_sell_value(side)*ABS(previous_close*shares))/denom_check(sum(trade_sell_value(side)*ABS(shares*previous_close)) over()) sell_weight,
v.*
from v_trade_executions v
join map_country_region m on v.iso_country = m.iso_country and m.region_name like :P19_REGION||'%'
where trade_date >= NVL(to_date(:P19_FROM_DATE, 'MM/DD/YYYY'), previous_business_day(sysdate))
and trade_date <= NVL(to_date(:P19_TO_DATE, 'MM/DD/YYYY'), previous_business_day(sysdate))
and broker like :P19_BROKER||'%'
)
Bill,
What makes you think this is fixed in the latest patch. Is there a bug reference I can look at?
Because the symptoms look like those in bug 6956070. However you refer to an anonymous block and PL/SQL but what you showed is neither one -- your example shows a SQL statement. But I still think it's the bug we fixed.
By the way, you should always apply the latest patches to this product. It's not considered an upgrade to go from one of our main releases to a patched version of the release, in case that helps you make the case.
Scott
Similar Messages
-
Ora 12154 error when trying to add a database to VS Server Explorer
Hi Everyone,
I get the Ora 12154 error when trying to add a database to VS Server Explorer.
How do I get around this problem.
The database service is running and I can connect to the database with pl/sql.
I can also tnsping the database and that is also ok.
Looks like a problem with the odp.net software.
I am running the 32 bit Oracle 11g on a Windows7 Home Premium 64 bit PC.
I am new to this stuff so please help me step by step.
Thanks.
EmadHi J. B.
I have a question related to this. After you told me about the //host:1521/database alias I tried it in a VB 2008 program and it worked and returned data. At least I know that it can be used in a VB program without issues. I just now need to be able to add a connection with the Server Explorer.
Anyway here is the VB coding I used. I'm new to this and still learning:
Imports Oracle.DataAccess.Client ' Visual Basic ODP.NET Oracle managed provider
Public Class Form1
' String to connect to the database.
Dim strConnectionString As String = _
"Data Source=//emad-pc:1521/emadeva;User ID=scott;Password=tiger;" '
' Associate the connection string with a connection object.
Dim objOracleConnection As New OracleConnection(strConnectionString)
' SQL query for returning data rows.
Dim strSqlQuery As String = _
"Select dname, deptno " & _
"From dept " & _
"Where deptno = 10" '
' Command object to make this query work.
Dim objOracleCommand As New OracleCommand(strSqlQuery, objOracleConnection)
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Identify what type of command is being used.
objOracleCommand.CommandType = CommandType.Text
Try
objOracleConnection.Open()
' Set up a Data Reader and load it with data.
Dim objOracleDataReader As OracleDataReader = _
objOracleCommand.ExecuteReader()
objOracleDataReader.Read()
' Convert the department number to a string.
lblDepartmentNumberFromOracle.Text = _
CStr(objOracleDataReader.Item("deptno"))
Catch ex As Exception
MessageBox.Show(ex.Message, "Error")
End Try
End Sub
End Class
I still want to thank you for the help you are providing.
Truly,
Emad -
New error when trying to modify workflow in Firefox
We are suddenly getting an error in Firefox when trying to modify workflows or attribute access control (so may be java related). For years we've had no issues but now when attempting to modify a workflow a popup error box is displayed stating "Access denied. Please reload your browser and contact your administrator for more information." The same action using Internet Explorer works fine. Has anyone else encountered this and found the issue?
I have experienced this problem as well and have a solution that worked for us.
I started experiencing the same error message ""Access Denied. Please reload your browser and contact your administrator for more information." when attempting to edit a workflow. This problem started after I had edited the following three files:
ad_exclude_attrs.xml
exclude_attrs_config.xml
exclude_attrs-ad.xml
these files are located in:
%OAM directory%/identity/oblix/data/common
I had edited these files in an attempt to gain access to some other attributes in AD via OAM. Once I had removed some entries in these files related to the attributes I was interested in, the error message began to appear.
I was using Internet Explorer 8.
Restoring the above three files to their originals and restarting the Identity server resolved the issue.
I hope this helps,
Ian -
FireFox keep saying "unexpected error" when trying to print web pages.
FireFox keep saying "unexpected error" when trying to print web pages. The print preview works OK, but when you try to print that "unexpected error" jumps up.
Please email me on what to do to get FireFox to work.
I don't see anything in the FAQ that might help me.Hi,
Please also try this setting: Windows start menu or Control Panel > '''Devices and Printers''', right-click the printer > '''Printer properties''' > '''Advanced''', and select '''Start printing after the last page is spooled'''. In this case you can also close Firefox after spooling is over (usually much faster than direct printing), and printing will continue.
Also as a general case, if you have security software (antivirus, firewall etc.) installed, you can try deleting all existing instances of Firefox and its related processes/files in all the different configuration modules/areas of the security software like process monitoring, sub/spawned process control, virtualization, HIPS etc., in addition to the security software's main configuration panel. Instead create new fully allowed/trusted rules for Firefox + its related processes in all the different modules/panels - a genuine/original Firefox installer as well as all the installed EXEs (Application) and DLLs (Application extension) are digitally signed by Mozilla Corporation (right-click > Properties > Digital Signatures). Even otherwise, some security software may also ask again when Firefox and/or its sub processes are started, and you may be able to allow/trust at that time. Please see [https://support.mozilla.org/en-US/kb/Firewalls this].
[http://kb.mozillazine.org/Firewalls AV/Firewalls Configuration] -
Keep getting an error message when trying to open iTunes 11 after installing...running Windows ...have tried most fixes ...message says ...iTunes.exe - Bad Image ...iTunes c:\Program Files(x86)\Common Files\Apple Apple Application Support\CoreADI.dll is not designed to run on Windows or it contains an error .....
Also when iTunes first opesn after installing ....the message come up that says "A required iTunes component is not installed .please repair or reinstalll iTunes (-45075)"
Have repaired , reinstalled , created and used a restore point etc etc
How do I fix this !!! Please...iTunes.exe - Bad Image ...iTunes c:\Program Files(x86)\Common Files\Apple Apple Application Support\CoreADI.dll is not designed to run on Windows or it contains an error .....
Taken at face value, you're having trouble with an Apple Application Support program file there. (Apple Application Support is where single copies of program files used by multiple different Apple programs are kept.)
Let's try something relatively simple first. Restart the PC. If you're using Vista or 7,now head into your Uninstall a program control panel, select "Apple Application Support" and then click "Repair". If you're using XP,head into your Add or Remove Programs control panel, select "Apple Application Support", click "Change" and then click "Repair".
If no joy after that, try the more rigorous uninstall/reinstall procedure from the following post. (If you've got XP, although the procedure is for Vista and 7, just read "Computer" as "My Computer", read "Uninstall a program control panel" as "Add or Remove programs control panel" and assume the system is 32-bit, and you'll be doing the right things.)
Re: I recently updated to vista service pack 2 and I updated to itunes 10.2.1 and ever -
When trying to run any page on jdev 9.0.3.5 the jdev close
when trying to run any page on jdev 9.0.3.5 the jdev close immidiatly and an empty log file is created i am using ie 8
Hi,
Check whether all the relevant services are up. If the problem still persist then there might be some issue with your JDeveloper.
Regards,
Gyan -
when trying to download Mountain Lion after click on buy I get this message: The product distribution file could not be verified. It may be damaged or was not signed.
The Apple Support Communities are an international user to user technical support forum. As a man from Mexico my first language is Spanish. I do not speak English, however I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
Always search the forum before posting. This is asked at least three times just below your post.
https://discussions.apple.com/thread/3604789?tstart=0
https://discussions.apple.com/thread/4153268?tstart=0 -
When trying to export a pages document, it says 'error while printing' when I want to save as PDF. I used to be able to do it but for some random reason it won't let me anymore. Even when the printer is not plugged in or turned on it says it. Is there a setting I can change? Does anyone know how to fix as i can't email any documents and I don't know what else to do. Please help its driving me crazy.....
imac Intel-core duo Mac OS X (10.4.8)thank you, I can't print or save any old pages documents. I will create a new one and see if that helps. I have tried from the print dialog but it says the same thing. I will try something in another application. Could it have been when I updated pages? I only recently got broadband so did a heap of updates that were a bit overdue.
-
I get scrip error when trying to print web pages.
I get a scrip error message when trying to print web pages and it will not print.
FreddieP,
You may want to download and run the HP Print and Scan Doctor. It helps diagnose and resolve printing issues. You can click on the link below to go right to it.
Let us know if this works for your issue or not.
http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=oj-106151-2&cc=us&dlc=en&lc=en...
If I helped you at all it would be great if you clicked the blue kudos star!
If I solved your post please mark it as solved to help others.
I'm a printer tech with HP. -
Error while deploy mapping ora-06550 table or view does not exist
Hi everyone,
i have a target source 'U_BCK' that cointains some Oracle table.
I have also created a target schema 'BCK_OWNER' where i create some dimensions and cubes with mappings.
My mappings connect some table from U_BCK with dimension or cube from BCK_OWNER.
My repository owner is called 'rep_owner' and i used this user to create every metadata.
Now i'm trying to deploy, and i don't have any problem until deploying mappings. When i try to deploy mappings i get some errors like ora-06550,ora-00942 table or view does not exist and statement ignored.
Please help me and sorry for my english...
Thanks,
Alex.The mapping, that drives the data from one table to another is deployed to the database as a PL/SQL package. When deploying your mapping fails, it most often means that the resulting PL/SQL package doesn't compile in the database.
Using Oracle SQL Developer (or Toad, SQL Navigator or any other tool) connect to the schema on the database where you have deployed the mapping. Open the pl/sql package and compile it. That should show you the place where the compilation fails, and give you an idea as to what table it can not find. Otherwise, in SQLPLUS, you can simply give the following command:
ALTER PACKAGE THE_PACKAGE_NAME_GOES_HERE compile body;
show errors;
As the database user who owns the source tables, make sure to issue a GRANT command for each of the source tables, granting SELECT access to the database user who owns the mapping:
grant select on TABLENAME to TARGETSCHEMA.
hope this helps
Borkur -
Error ORA-12560 prompts when trying to log in to the Enterprise Manager
Hi all,
I am a newbie to Oracle.
Just installed the Oracle 9i Database Enterprise Edition (9.0.1) into Windows Server 2003 Standard Edition. Problem is encountered when trying to log in to the Enterprise Manager Standalone mode using either system/oracle or scott/tiger as credentials. Error "ORA-12560: TNS:protocol adapter error" prompts.
I tried to check with some configuration and see whether the services are started. Services of "OracleOraHome90TNSListener" and "OracleServiceORCL" have been started and the database exists in the dedicated directory. Environment variables of "ORACLE_HOME" and "ORACLE_SID" have been added manually as the SID is set to orcl, which I just follow what the instruction manual has stated. Moreover, I can't get access using command prompt typing "svrmgrl"; error returned stating " 'svrmgrl' is not recognized as an internal or external command, operable program or batch file."
Another information is that there is no domain set in my server. Just a server with a name being assigned in a workgroup.
Hence, would you mind please advice me what to do in order to get access into the Enterprise Manager? It's quite an urgent task.
A million thx in advance!
Best Regards,
KarenHi Jigneshrp,
Thanks for your reply.
It is checked that the listener is running and TNS name service exists. Following your advice, I did create a new listener and another name service and use them, but the same error turns out when trying to log in to the Enterprise Manager again.
Additional information to take note for is that while reconfiguring the existing listener or creating a new listener, a mesage prompts stating "The information provided for this listener is currently in use by other software on this computer. You can proceed with the configuration as it is, but it will not be possible to start this listener until the conflict is resolved. Would you like to continue with the continue with the configuration anyway? Yes/No".
As for the reconfiguration or the new creation of TNS names service, when I am trying to test for the connection, the results in the details pane states that "Connecting... ORA-12560: TNS:protocol adapter error. The test did not succeed...."
Would you mind pls advice me on these?
Furthermore, there exist 2 questions I am wondering is that it is stated in the instruction manual that prior to the installation, a static IP should be specified for it instead of the DHCP one; hence, I wanna ask after the complete insallation, is it that the server should be running in the network, i.e. allow it to get connected with the outside network?
2nd question is that can Oracle 9i Database Server Standard Edition (9.0.1) be installed under a Windows Server 2003 Standard Edition and just a Window XP Professional?
Thanks for your reply.
Best Regards,
Karen -
hello.
I hope someone can help. My script below takes record(s) from a temporary table and loads them into ORACLE Financials via several APIs but on initial testing (using 1 NEW Record) it fails with the error message:
Employee No: 00020206
ORACLE error occurred processing record.. ORA-20001: PAY_7599_SYS_SUP_DT_OUTDATE
Ive tried to google the error message but nothing - can someone either suggest what this may be or shsow me another way of getting a more precise reason for the problem?
/* Formatted on 2009/04/29 11:52 (Formatter Plus v4.8.7) */
SET serveroutput ON SIZE 1000000 FORMAT WRAPPED
SET verify OFF
SET feedback OFF
DECLARE
-- Debugging/error handling
-- Work variables
l_employ_start_date DATE:= TO_DATE ('01-APR-1999', 'DD-MON-YYYY');
v_ora_loc_code number := 0;
p_emp_number VARCHAR2 (14);
v_rec_cnt NUMBER := 0;
insert_flag VARCHAR2 (8);
err_num NUMBER;
err_msg VARCHAR2 (150);
err_line VARCHAR2 (350);
err_seq NUMBER := 0;
l_validate BOOLEAN DEFAULT FALSE;
l_std_business_group_id NUMBER := '0';
l_default_code_comb_id NUMBER := '218048';
l_organization_id NUMBER := '0';
l_set_of_books_id NUMBER := '1';
l_job_id NUMBER := '10';
l_obj NUMBER;
l_datetrack_update_mode VARCHAR2 (30) := 'CORRECTION';
l_assignment_sequence NUMBER;
l_name_combination_warning BOOLEAN := FALSE;
l_assign_payroll_warning BOOLEAN := FALSE;
l_org_now_no_manager_warning BOOLEAN;
l_other_manager_warning BOOLEAN;
l_spp_delete_warning BOOLEAN;
l_entries_changed_warning VARCHAR2 (30);
l_tax_district_changed_warning BOOLEAN;
l_person_id NUMBER;
l_assignment_id NUMBER;
l_assignment_id2 NUMBER; -- := '28262';
l_special_ceiling_step_id NUMBER;
l_per_effective_end_date DATE:= TO_DATE ('11-Jul-2049', 'DD-MON-YYYY');
l_people_group_id NUMBER;
l_group_name VARCHAR2 (30);
l_assignment_number VARCHAR2 (35);
l_effective_end_date DATE := TO_DATE ('11-Jul-2049', 'DD-MON-YYYY');
l_date DATE := SYSDATE;
ip_p_address_id per_addresses.address_id%TYPE;
ip_p_object_version_number NUMBER;
ip_p_party_id per_addresses.party_id%TYPE;
l_per_object_version_number NUMBER;
l_asg_object_version_number NUMBER;
l_full_name VARCHAR2 (240);
l_per_comment_id NUMBER;
l_per_effective_start_date DATE;
l_concatenated_segments VARCHAR2 (240);
l_soft_coding_keyflex_id NUMBER;
l_comment_id NUMBER;
l_no_managers_warning BOOLEAN;
-- Get employee details info from work table
CURSOR get_employee_details
IS
SELECT std_hire_date, std_last_name, std_sex, std_date_of_birth,
std_email_address, std_emp_status,
LPAD (std_employee_number, 8, '0') std_employee_number,
std_first_name, std_marital_status, std_middle_names,
std_nationality, std_title, std_national_identifier,
std_address_line1, std_address_line2, std_address_line3,
std_address_line4, std_post_code, std_telephone_1, std_country,
std_region, std_location_id, std_organization_id,
std_supervisor_id, std_person_id, std_position_id
FROM SU_TEMPLOYEE_DETAILS;
-- Get EXISTING employee details info from ORACLE tables
CURSOR get_existing_employee_details
IS
SELECT per.person_id, per.business_group_id, per.last_name,
per.start_date, per.date_of_birth, per.email_address,
per.employee_number, per.first_name, per.marital_status,
per.middle_names, per.nationality, per.national_identifier,
per.sex, per.title, padd.address_id, padd.primary_flag,
padd.address_line1, padd.address_line2, padd.address_line3,
padd.town_or_city, padd.postal_code, padd.telephone_number_1, paas.assignment_id,
paas.assignment_number, paas.object_version_number, paas.EFFECTIVE_START_DATE,
paas.job_id, paas.position_id, paas.location_id, paas.organization_id, paas.assignment_type, paas.supervisor_id,
paas.default_code_comb_id, paas.set_of_books_id, paas.period_of_service_id
FROM per_all_people_f per,
per_all_assignments_f paas,
per_addresses padd
WHERE
per.person_id = padd.person_id
-- AND paas.person_id(+) = per.person_id;
AND paas.person_id(+) = per.person_id;
-- checks employee details info from PER_ALL_PEOPLE_F table
CURSOR c_check_employee (p_emp_number VARCHAR2)
IS
SELECT per.person_id, per.business_group_id, per.last_name,
per.start_date, per.date_of_birth, per.email_address,
per.employee_number, per.first_name, per.marital_status,
per.middle_names, per.nationality, per.national_identifier,
per.sex, per.title, padd.address_id, padd.primary_flag,
padd.address_line1, padd.address_line2, padd.address_line3,
padd.town_or_city, padd.postal_code, padd.telephone_number_1, paas.assignment_id,
paas.assignment_number, paas.object_version_number, paas.EFFECTIVE_START_DATE,
paas.job_id, paas.position_id, paas.location_id, paas.organization_id, paas.assignment_type, paas.supervisor_id,
paas.default_code_comb_id, paas.set_of_books_id, paas.period_of_service_id
FROM per_all_people_f per,
per_all_assignments_f paas,
per_addresses padd
WHERE per.employee_number = p_emp_number
AND per.person_id = padd.person_id
AND paas.person_id(+) = per.person_id;
emp_rec c_check_employee%ROWTYPE;
-- Cursor retrieves latest Object Version Number from per_assignments_f table..
CURSOR csr_ovn (cp_person_id IN per_all_people_f.person_id%TYPE)
IS
SELECT MAX (paas.object_version_number)
FROM per_assignments_f paas, per_all_people_f per
WHERE paas.person_id = per.person_id
AND per.employee_number = paas.assignment_number
AND per.person_id = cp_person_id;
-- Cursor to get Oracle_Loc_Code from SU CHRIS vs ORACLE Locations Table into a variable..
CURSOR csr_ora_loc_code (cp_location_id IN SU_TEMPLOYEE_DETAILS.std_location_id%TYPE)
IS
SELECT sil.ORACLE_LOC_CODE
FROM SU_TEMPLOYEE_DETAILS std, SU_IEXP_LOCATIONS sil
WHERE std.STD_LOCATION_ID = sil.CHRIS_LOC_code
AND std.STD_LOCATION_ID = cp_location_id;
BEGIN
-- Process each record in the work table
FOR v_emp IN get_employee_details
LOOP
-- determine whether customer already exists
OPEN c_check_employee (v_emp.std_employee_number);
FETCH c_check_employee
INTO emp_rec;
l_assignment_id2 := emp_rec.assignment_id;
IF v_emp.std_emp_status = 'N' and c_check_employee%NOTFOUND
THEN
insert_flag := 'I';
DBMS_OUTPUT.PUT_LINE ('Employee No: ' || v_emp.std_employee_number);
ELSIF v_emp.std_emp_status = 'C'
THEN
-- if c_check_employee%NOTFOUND then raise no_data_found;
-- elsif l_assignment_id2 is null then
if l_assignment_id2 is null then
raise_application_error (-20010, 'Employee No: ' || v_emp.std_employee_number || ' exists but has no assignment id!');
end if;
DBMS_OUTPUT.PUT_LINE ('Employee No: ' || v_emp.std_employee_number || ' already exists, making changes.. ' );
insert_flag := 'C';
-- RAISE_APPLICATION_ERROR (-20001, 'Employee No: ' || v_emp.std_employee_number || ' already exists ' );
END IF;
CLOSE c_check_employee;
-- Obtain the most recent Object Version Number..
OPEN csr_ovn (v_emp.std_person_id);
FETCH csr_ovn
INTO l_obj;
-- IF csr_ovn%NOTFOUND THEN RAISE NO_DATA_FOUND; END IF;
CLOSE csr_ovn;
-- Open Oracle Location Code cursor
OPEN csr_ora_loc_code(v_emp.std_location_id);
FETCH csr_ora_loc_code
INTO v_ora_loc_code;
CLOSE csr_ora_loc_code;
-- Create new PER_ALL_PEOPLE_F and PER_ADDRESSES record from
-- info in table record
IF insert_flag = 'I'
THEN
-- -- Importing Employee Procedure --
Hr_Employee_Api.create_gb_employee
(p_validate => l_validate,
p_hire_date => l_employ_start_date,
p_business_group_id => l_std_business_group_id,
p_date_of_birth => v_emp.std_date_of_birth,
p_email_address => v_emp.std_email_address,
p_first_name => v_emp.std_first_name,
p_middle_names => v_emp.std_middle_names,
p_last_name => v_emp.std_last_name,
p_sex => v_emp.std_sex,
p_ni_number => v_emp.std_national_identifier,
p_employee_number => v_emp.std_employee_number,
p_person_id => l_person_id,
p_title => v_emp.std_title,
p_assignment_id => l_assignment_id,
p_per_object_version_number => l_per_object_version_number,
p_asg_object_version_number => l_asg_object_version_number,
p_per_effective_start_date => l_per_effective_start_date,
p_per_effective_end_date => l_per_effective_end_date,
p_full_name => l_full_name,
p_per_comment_id => l_per_comment_id,
p_assignment_sequence => l_assignment_sequence,
p_assignment_number => l_assignment_number,
p_name_combination_warning => l_name_combination_warning,
p_assign_payroll_warning => l_assign_payroll_warning
Hr_Person_Address_Api.create_person_address
(p_validate => l_validate,
-- p_effective_date => v_emp.std_hire_date,
p_effective_date => l_employ_start_date,
p_pradd_ovlapval_override => NULL,
p_validate_county => NULL,
p_person_id => l_person_id,
p_primary_flag => 'Y',
p_style => 'GB_GLB',
p_date_from => SYSDATE,
p_date_to => NULL,
p_address_type => NULL,
p_comments => NULL,
p_address_line1 => v_emp.std_address_line1,
p_address_line2 => v_emp.std_address_line2,
p_address_line3 => v_emp.std_address_line3,
p_town_or_city => v_emp.std_address_line4,
p_region_1 => NULL,
p_region_2 => NULL,
p_region_3 => NULL,
p_postal_code => v_emp.std_post_code,
p_country => v_emp.std_nationality,
p_telephone_number_1 => NULL,
p_telephone_number_2 => NULL,
p_telephone_number_3 => NULL,
p_party_id => ip_p_party_id,
p_address_id => ip_p_address_id,
p_object_version_number => l_obj
Hr_Assignment_Api.update_emp_asg
(p_validate => l_validate,
p_effective_date => SYSDATE, -- l_date,
p_datetrack_update_mode => l_datetrack_update_mode,
p_assignment_id => l_assignment_id,
p_object_version_number => l_obj,
p_supervisor_id => v_emp.std_supervisor_id,
p_default_code_comb_id => l_default_code_comb_id,
p_set_of_books_id => l_set_of_books_id,
p_concatenated_segments => l_concatenated_segments,
--IN/OUT
p_soft_coding_keyflex_id => l_soft_coding_keyflex_id,
--IN/OUT
p_comment_id => l_comment_id,
--IN/OUT
p_effective_start_date => l_date, --IN/OUT
p_effective_end_date => l_effective_end_date,
--IN/OUT
p_no_managers_warning => l_no_managers_warning,
--IN/OUT
p_other_manager_warning => l_other_manager_warning
--IN/OUT
Hr_Assignment_Api.update_emp_asg_criteria
(p_validate => l_validate,
p_effective_date => SYSDATE, -- l_date,
p_datetrack_update_mode => l_datetrack_update_mode,
p_assignment_id => l_assignment_id,
p_object_version_number => l_obj,
p_organization_id => l_organization_id,
p_location_id => v_ora_loc_code,
p_job_id => l_job_id,
p_position_id => v_emp.std_position_id,
p_special_ceiling_step_id => l_special_ceiling_step_id,
p_effective_start_date => l_date,
--per_effective_start_date,
p_effective_end_date => l_effective_end_date,
--IN/OUT
p_people_group_id => l_people_group_id,
--IN/OUT
p_group_name => l_group_name, --IN/OUT
p_org_now_no_manager_warning => l_org_now_no_manager_warning,
--IN/OUT
p_other_manager_warning => l_other_manager_warning,
--IN/OUT
p_spp_delete_warning => l_spp_delete_warning,
--IN/OUT
p_entries_changed_warning => l_entries_changed_warning,
--IN/OUT
p_tax_district_changed_warning => l_tax_district_changed_warning
--IN/OUT
v_rec_cnt := v_rec_cnt + 1;
DBMS_OUTPUT.PUT (CHR (10));
DBMS_OUTPUT.PUT_LINE ( 'There were '
|| v_rec_cnt
|| ' records read in..'
-- Updating PER_ALL_PEOPLE_F and PER_ADDRESSES record from
-- info in table record
ELSE IF insert_flag = 'C'
THEN
-- ===================================================
-- these next 6 lines is for the initial mass update of existing employee records only
-- ===================================================
/*IF emp_rec.default_code_comb_id is NULL THEN
l_default_code_comb_id = 218048;
END IF;
IF emp_rec.job_id is NULL THEN
l_job_id = 10;
END IF; */
-- =========
-- Section end
-- =========
Hr_Assignment_Api.update_emp_asg
(p_validate => l_validate,
p_effective_date => emp_rec.EFFECTIVE_START_DATE,
p_datetrack_update_mode => l_datetrack_update_mode,
p_assignment_id => l_assignment_id2,
p_object_version_number => l_obj,
p_supervisor_id => v_emp.std_supervisor_id,
p_default_code_comb_id => emp_rec.default_code_comb_id,
p_set_of_books_id => emp_rec.set_of_books_id,
p_concatenated_segments => l_concatenated_segments,
--IN/OUT
p_soft_coding_keyflex_id => l_soft_coding_keyflex_id,
--IN/OUT
p_comment_id => l_comment_id,
--IN/OUT
p_effective_start_date => l_date, --IN/OUT
p_effective_end_date => l_effective_end_date,
--IN/OUT
p_no_managers_warning => l_no_managers_warning,
--IN/OUT
p_other_manager_warning => l_other_manager_warning
--IN/OUT
Hr_Assignment_Api.update_emp_asg_criteria
(p_validate => l_validate,
p_effective_date => emp_rec.EFFECTIVE_START_DATE,
p_datetrack_update_mode => l_datetrack_update_mode,
p_assignment_id => l_assignment_id2,
p_object_version_number => l_obj,
p_organization_id => emp_rec.organization_id,
p_location_id => v_ora_loc_code,
p_job_id => emp_rec.job_id,
p_position_id => emp_rec.position_id,
p_special_ceiling_step_id => l_special_ceiling_step_id,
p_effective_start_date => emp_rec.EFFECTIVE_START_DATE,
p_effective_end_date => l_effective_end_date,
--IN/OUT
p_people_group_id => l_people_group_id,
--IN/OUT
p_group_name => l_group_name, --IN/OUT
p_org_now_no_manager_warning => l_org_now_no_manager_warning,
--IN/OUT
p_other_manager_warning => l_other_manager_warning,
--IN/OUT
p_spp_delete_warning => l_spp_delete_warning,
--IN/OUT
p_entries_changed_warning => l_entries_changed_warning,
--IN/OUT
p_tax_district_changed_warning => l_tax_district_changed_warning
--IN/OUT
v_rec_cnt := v_rec_cnt + 1;
DBMS_OUTPUT.PUT (CHR (10));
DBMS_OUTPUT.PUT_LINE ( 'There were '
|| v_rec_cnt
|| ' records read in..'
DBMS_OUTPUT.PUT (CHR (10));
-- End of customer related details
END IF;
END IF;
END LOOP;
COMMIT;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
ROLLBACK;
err_num := TO_CHAR (SQLCODE);
err_msg := SUBSTR (SQLERRM, 1, 150);
err_line := 'ORACLE error occurred processing record.. ' || err_msg;
DBMS_OUTPUT.PUT_LINE (err_line);
INSERT INTO SU_ERROR_LOG VALUES (err_msg, 'TEMPLOYEE_DTLS.sql', SYSTIMESTAMP);
WHEN OTHERS
THEN
ROLLBACK;
err_num := TO_CHAR (SQLCODE);
err_msg := SUBSTR (SQLERRM, 1, 150);
err_line := 'ORACLE error occurred processing record.. ' || err_msg;
DBMS_OUTPUT.PUT_LINE (err_line);
INSERT INTO SU_ERROR_LOG VALUES (err_msg, 'TEMPLOYEE_DTLS.sql', SYSTIMESTAMP);
END;
EXIT;Many thanks
StevenIt looks like the Supervisor employee is not active for the duration of the Employee Record.
Using the correct Supervisor record should resolve the issue. -
ORA-01552 Error when trying to import data
I get the following error when trying to import data into my database. My version is as follows:
Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
PL/SQL Release 9.2.0.6.0 - Production
CORE 9.2.0.6.0 Production
TNS for Solaris: Version 9.2.0.6.0 - Production
NLSRTL Version 9.2.0.6.0 - Production
and I get the following error:
ORA-01552: cannot use system rollback segment for non-system tablespace
Any help would be appreciated.
Also when I upgraded my database I received the following error message but continued without fixing:
Warnings Ignored: Your database is using US7ASCII as the NCHAR type. In Oracle9i, the NCHAR datatypes (NCHAR, NVARCHAR2, and NCLOB) are limited to the Unicode character set encoding (UTF8 AND AL16UTF16) only. Refer to the Oracle 9i Database Upgrade Guide to change NCHAR columns in user tables to one of the supported types.
Can I fix this via an sql statement or what?Hi, i think that the problem is around the rollback segments.The solution is bring other rollback segments ONLINE state, if not exist others rollbackup,then you need create the other rollback segments and bring online state.
If you need more information, you will must see the next DOC-ID on Metalink site,
Note:121971.1
Luck.
Have a good day.
Regards. -
ORA-00604 error when trying to insert into a XMLTYPE stored as BINARY
Hi. Here's the scenario.
Here's my Oracle version:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
The database is encoded as AL32UTF8.
First I create the table...
create table binary_table (the_field XMLTYPE) XMLTYPE COLUMN the_field STORE AS BINARY XML;
Now I try and do an insert like this...
insert into binary_table values (xmltype('<?xml version="1.0" encoding="AL32UTF8"?>' || chr(10) || '<a>b</a>' || chr(10)));
and I get this error:
SQLState: 60000
ErrorCode: 604
Position: 122
Error: ORA-00604: error occurred at recursive SQL level 1
ORA-00942: table or view does not exist
If I create the table with a CLOB storage option for the XMLTYPE, the insert works fine. If I repeat these steps in another database instance, same Oracle version, that's encoded as WE8ISO8859P1, it also works fine. It behaves the same in several clients. I also tried it with several different values for NLS_LANG and that didn't help.
I do want to say that this database instance has just been set up especially for me so I can do some R&D on AL32UTF8 and XMLTYPE to see if it fits our needs. So it might be a problem with the database instance.
Thanks for taking a look at this.
Ralph
Edited by: stryder100 on Jul 24, 2009 12:11 PMHi,
Use this
Load data
append Into TABLE HS_HRMIG_EMP_PER_20MAR07 fields terminated by "," optionally enclosed by '"'
TRAILING NULLCOLS.
Here optional enclosed by is for doubles quotes which should needs to place in single quotes.
like '"'.
try with this.
--Basava.S -
Getting ora-01092 and ora-00600 error when trying to startup database
hi friends,plz help me i am in serious problem i dont know what happen to my database oracle 11g R2 when trying to startup it
its showing the below error
SQL> startup
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.
Total System Global Area 7482626048 bytes
Fixed Size 2214416 bytes
Variable Size 4697622000 bytes
Database Buffers 2751463424 bytes
Redo Buffers 31326208 bytes
Database mounted.
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-00600: internal error code, arguments: [12620], [6], [7], [], [], [], [],
Process ID: 18088
Session ID: 96 Serial number: 3This seems to be a Jumbo issue. Either you have to open a Service Request(SR) to oracle or you have to uninstall and again install the oracle DB to solve this ISSUE
Regards
cks
Edited by: 874782 on Jan 17, 2012 2:58 PM
Maybe you are looking for
-
Applescript: open Pages doc from Templete, change filename and replace text
Hi! I just got started with applescript and i want a script that does the following: 1. open "choose from list" dialog to choose the topic of my document from 4 possibilities (here for example A, B, C, D) 2. open document from TemplateXY 3. set docum
-
Creation of support message in SolMan without having user id in SolMan
Hi Everyone, Need your help in this issue. I have solution manager configured to create a service desk message from satellite system. We dont want everyone (Users from satellite system) to have an SOLMAN user id to create a service desk message. We w
-
How to connect iPad to printer
I have iPad and want to connect it to canon MP280 printer, please advise
-
Why does Firefox keep crashing?
I have a Mac 10.6.8 and using Firefox browser 31.0. Firefox has been crashing constantly for about 3 weeks. Any thoughts on how I can fix this? Have not changed anything except download updates to Firefox when available. thank you
-
Joining two tables on two keys of differnt datat types
Hi, I have two two tables, create table table1( primkey1 double, name varchar(30)) create table table2( primkey2 varchar(40), name varchar(30)) Now I have to join these two table in RPD. I tried to join but i got an error. plz tell me the way to join