Cfldap not returning anything
I am trying to use cfldap to retireve a user's AD
information. I have confirmed that I am using the correct server,
username, password, and start path. But, it always returns a blank,
no data. Yet, I get no errors. If I do a cfdump, there is no data.
I am at a loss. At least with an error message I would have
something to work with. Does anyone have any suggestions or ideas
on why I would get an empty record with no errors? My code is as
below:
Tricks I use with LDAP.
1) Simplify your attributes, only select CN or * until you
know you are
retrieving the desired node, then add all the other elements.
2) Try without a filter until you confirm the desired node(s)
are being
returned, then add the filter.
3) Try other scopes. Maybe there are no sub nodes to the node
you have
mapped to.
4) A third party LDAP browsers helps me a great deal to make
sure I am
understanding the LDAP data correctly. I use the Softerra
free LDAP
browser.
Similar Messages
-
Why does my function not return anything when I create as a schema object
I have user ABC who owns several tables some of which have foreign key constraints.
I have user XYZ that has been granted access to all tables owned by user ABC.
When I create a function as user XYZ using following I get no return when I issue:
select XYZ.ztm_tables_depended_on('ABC', 'A_TABLE_OWNED_BY_ABC') from dual :
Please see after function definition.
CREATE OR REPLACE FUNCTION ZTM_TABLES_DEPENDED_ON(p_Owner VARCHAR2, p_Table_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME
FROM ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND TABLE_NAME = p_Table_Name
AND CONSTRAINT_TYPE = 'R'
ORDER BY OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME;
v_Referenced_Owner VARCHAR2(31);
v_Ret_Val VARCHAR2(4000);
FUNCTION CONSTRAINT_TABLE_NAME(p_Owner VARCHAR2, p_Constraint_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT TABLE_NAME
FROM ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND CONSTRAINT_NAME = p_Constraint_Name;
v_Ret_Val ALL_CONSTRAINTS.TABLE_NAME%TYPE;
BEGIN
OPEN C1;
FETCH C1 INTO v_Ret_Val;
CLOSE C1;
RETURN v_Ret_Val;
END;
BEGIN
FOR R IN C1 LOOP
IF (R.OWNER <> R.R_OWNER) THEN v_Referenced_Owner := R.R_OWNER || '.';
ELSE v_Referenced_Owner := NULL;
END IF;
v_Ret_Val := v_Ret_Val || ', ' || v_Referenced_Owner || CONSTRAINT_TABLE_NAME (R.R_OWNER, R.R_CONSTRAINT_NAME);
END LOOP;
RETURN LTRIM(v_Ret_Val, ', ');
END;
But, if I embed the function within an anonymous block as follows, I get results:
DECLARE
CURSOR C1 IS
select owner, table_name
FROM all_tables where owner = 'ABC';
FUNCTION ZTM_TABLES_DEPENDED_ON(p_Owner VARCHAR2, p_Table_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME
FROM ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND TABLE_NAME = p_Table_Name
AND CONSTRAINT_TYPE = 'R'
ORDER BY OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME;
v_Referenced_Owner VARCHAR2(31);
v_Ret_Val VARCHAR2(4000);
FUNCTION CONSTRAINT_TABLE_NAME(p_Owner VARCHAR2, p_Constraint_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT TABLE_NAME
FROM ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND CONSTRAINT_NAME = p_Constraint_Name;
v_Ret_Val ALL_CONSTRAINTS.TABLE_NAME%TYPE;
BEGIN
OPEN C1;
FETCH C1 INTO v_Ret_Val;
CLOSE C1;
RETURN v_Ret_Val;
END;
BEGIN
FOR R IN C1 LOOP
IF (R.OWNER <> R.R_OWNER) THEN v_Referenced_Owner := R.R_OWNER || '.';
ELSE v_Referenced_Owner := NULL;
END IF;
v_Ret_Val := v_Ret_Val || ', ' || v_Referenced_Owner || CONSTRAINT_TABLE_NAME (R.R_OWNER, R.R_CONSTRAINT_NAME);
END LOOP;
RETURN LTRIM(v_Ret_Val, ', ');
END;
BEGIN
FOR R IN C1 LOOP
DBMS_OUTPUT.PUT_LINE(ztm_tables_depended_on(R.Owner, R.Table_Name));
END LOOP;
END;
Any ideas what is happening here?Any ideas what is happening here?
Justin explained the probable reason.
See the 'How Roles Work in PL/SQL Blocks' section of the database security doc for the details
http://docs.oracle.com/cd/E25054_01/network.1111/e16543/authorization.htm#i1007304
How Roles Work in PL/SQL Blocks
The use of roles in a PL/SQL block depends on whether it is an anonymous block or a named block (stored procedure, function, or trigger), and whether it executes with definer's rights or invoker's rights.
Roles Used in Named Blocks with Definer's Rights
All roles are disabled in any named PL/SQL block (stored procedure, function, or trigger) that executes with definer's rights. Roles are not used for privilege checking and you cannot set roles within a definer's rights procedure.
The SESSION_ROLES view shows all roles that are currently enabled. If a named PL/SQL block that executes with definer's rights queries SESSION_ROLES, then the query does not return any rows.
Roles Used in Named Blocks with Invoker's Rights and Anonymous PL/SQL Blocks
Named PL/SQL blocks that execute with invoker's rights and anonymous PL/SQL blocks are executed based on privileges granted through enabled roles. Current roles are used for privilege checking within an invoker's rights PL/SQL block. You can use dynamic SQL to set a role in the session.
See that line starting with 'All roles are disables in any named PL/SQL block'? -
Echo $ORACLE_HOME not returning anything
Hello,
We are an Oracle On Demand customer , when i try to login to host using putty and try to find the Oracle Home using the command
# echo $ORACLE_HOME ,
it doesnt return anything. Is there any configuration that is missing, any help will be appreciated.
I tried modifying the .bash_profile file by adding
ORACLE_HOME=$ORACLE_BASE/product/10.2.0
export ORACLE_HOME
but still no luck.Poking about on the intertubes, I found an Oracle On Demand Technology reference guide (but probably from a different version). Anyways, it has an appendix where all the conventions about setting ORACLE_BASE, ORACLE_HOME and SID are found. You should find that guide for your circumstance, there appears to be a lot of conventions based on things you haven't mentioned.
Remember, filenames beginning with a dot are hidden (I don't use filezilla so I don't know how it handles that), and some systems are set up with more general environment settings set elsewhere than your .bashrc. You may simply need to dot some other file or use oraenv to condition your settings, or need to create a .bashrc or some other shell specific file. -
APEX_UTIL.GET_PRINT_DOCUMENT not returning anything
I have a report query and have provided a layout to print it
I need to get the html generated from the report so that I can mail it.
As I could not get the generated file in the PL/SQL package written , for quick testing I started testing using a SQL stmt to check for the length of the LOB
select dbms_lob.getlength(APEX_UTIL.GET_PRINT_DOCUMENT (
p_application_id=>my_app_id,
p_report_query_name=>'name of qry',
p_report_layout_name=>'name of layout',
p_report_layout_type=>'rtf',
p_document_format=>'htm')) lob_size
from dual
I also tried by providing the p_print_server => null in addition to the parameters passed.
But the query returns NULL only.
The qry and layout are correct as the query when tested in the edit qry screen in APEX shows the output report in the format required (including html , PDF etc)
Any pointers ?
Thx
Edited by: user618186 on Apr 24, 2009 2:35 PM
Edited by: user618186 on Apr 24, 2009 2:36 PMI have the same problem exactly...works as an APEX proc, will not work from sqlplus despite setting security group id. Mail works. Attachments with another BLOB works. But I can't get this function to give me the BLOB.
-
Queries in SQL developper do not return anything?
Hello there,
First of I am completely new to Oracle and IT in general. Apart from having used computers since the heyday my knowledge of programming is very little. I have been reading Oracle documentation and bought the CBT nuggets tutorials to prepare for examination.
I have followed the instructions to install the HR schema which worked in SQL*Plus but whenever i go into SQL developper and create a connection using the same username/password as I did in SQL*plus, then type in the select table_name from user_tables; query, nothing happens.
What am I doing wrong? Am i simply not connecting to the same DB?
Thanks in advanceSo when i set up the HR schema using SQL plus and was prompted to give a password for HR, i did that. Now when i open up the SQL plus (as administrator) and log in using username HR and the password i set for it, I can access the Schema's default tables such as employees.
However on SQL developper, I open up a new connection called HR and put the same password that HR uses on SQL plus but whenever I attempt a select statement there are no returns. It just seems like SQL developper is not connected to the database.
I am currently using the CBT nuggers tutorial for the fundamentals exam 1z0-051 and the tutorial uses both SQL developer and SQL plus.
I appreciate all the responses but unfortunately I am stuck :(
I get this message when i go to Query builder:
Text is not a valid, single SELECT statement.
Syntax Error at line 4, column 9
select * employees;
^^^
Expected: ',','BULK','FROM','INTO',BULK_COLLECT_opt,from_clause,into_list,
Query Builder disabled.
Edited by: Vlakarmis on Jan 2, 2013 7:04 AM -
Java Perpared Statement does not return anything
Sorry fo bad language.
I have connection with Oracle 8 with JDBC thin drivers. Almost all queries, simple and very complex are doing well, except one:
select srcCard.object_id
from objects srcCard, params attrs
where
attrs.attr_id = ?
and attrs.object_id = srcCard.object_id and
attrs.value=?
union
select srcCard.object_id
from objects srcCard
where project_id = ? and
object_type_id in (
select object_type_id
from object_types
start with object_type_id=?
connect by prior object_type_id=parent_id )
and srcCard.name=?
Such query get parameters and don't return anywhere. Java waited for 48 hours and still continue to wait results from Oracle. If I look at sessions list in Oracle (with DBA studio), there is no such query.
The most strange thing is: query is not work only in Weblogic. If I try to run it with sql navigator or with sqlplus it returns data normally (with extract equal arguments).
Where is the bug? Is it known bug of driver, Oracle or configuration of Oracle?Hi, Jason,
user11925071 wrote:
Hello All,
I have a 8i DB and SQL Plus. in SQL Plus, when I do "desc cat", it gave me this:
SQL> desc cat;
Name Null? Type
TABLE_NAME NOT NULL VARCHAR2(30)
TABLE_TYPE VARCHAR2(11)
However when I do "select * from cat;", I though I would get a list of tables, but instead I got "no rows selected". Why is that?The most likely reason is that the table has no data.
Try:
SELECT COUNT (*)
FROM cat;to check.
And the second question is very likely related to the first. I can "desc user_constraints" but when I tried to select some constraints, I got error like this:
SQL> select constraint_name, constraint_type from user_constraints where tname = 'county_of_use';
select constraint_name, constraint_type from user_constraints where tname = 'county_of_use'
ERROR at line 1:
ORA-00904: invalid column nametname is not a column in user_constraints. Perhaps you meant table_name.
Text inside quotes is case-sensitive. Most names are all upper-case, so you proabably want to say
SELECT constraint_name
, constraint_type
FROM user_constraints
WHERE table_name = 'COUNTY_OF_USE';Edited by: Frank Kulash on Sep 22, 2009 5:12 PM
Originally said "you probably want to say constraint_name'. I agree with the next 2 replies; table_name is more likely. -
Re: AJAX-get() not returning anything
Hello!
I have the function listed below.
<script language="JavaScript1.1" type="text/javascript">
function getJob(callObj,setObj,pWhat) {
var get = new htmldb_Get(null, &APP_ID.,
'APPLICATION_PROCESS=getJob', 0);
alert("Here now plz");
get.add('P3_EMPNO',callObj.value)
var gReturn= get.get();
if(gReturn && pWhat == 'OBJ')
{ html_GetElement(setObj).value = gReturn }
else if (gReturn && pWhat == 'DIV')
{ html_GetElement(setObj).innerHTML = gReturn }
else
{ html_GetElement(setObj).value = 'null' }
get = null;
</script>
I also have this application process with this text
declare
v_job varchar2(10);
begin
select job
into v_job
from emp
where empno = :P3_EMPNO;
htp.prn(v_job);
end;
The get.add() in my function works and sets the cache value for :P3_EMPNO but the get.get() seems not to return any value so nothing is eventually displayed. Might u guys know where i'm messing it up.
Thnx in advSo i added an alert in one of the ifs and concatenated with gReturn and confirmed that the get() is actually working.
<script language="JavaScript1.1" type="text/javascript">
function getJob(callObj,setObj,pWhat) {
var get = new htmldb_Get(null, &APP_ID.,
'APPLICATION_PROCESS=getJob', 0);
alert("Here now plz----1");
get.add('P3_EMPNO',callObj.value)
var gReturn= get.get();
if(gReturn && pWhat == 'OBJ')
{ html_GetElement(setObj).value = gReturn;
alert("OK, Here now plz----1"+gReturn);}
else if (gReturn && pWhat == 'DIV')
{ html_GetElement(setObj).innerHTML = gReturn }
else
{ html_GetElement(setObj).value = 'null' }
get = null;
</script>
So how do i display html_GetElement(setObj).value in an item on the form?
Thnx! -
Ldapsearch_s does not return anything
Hi,
I try to use the code below, but somehow retval is always 0. Any idea?
ldap_user := 'cn=orcladmin';
ldap_passwd:= 'welcome';
ldap_base := ' '; --'cn=Login Server (portal30_sso)';
v_session := DBMS_LDAP.init(ldap_host, ldap_port);
retval := DBMS_LDAP.simple_bind_s(v_session,ldap_user, ldap_passwd);
my_attrs(1) := 'userpassword';
retval := DBMS_LDAP.search_s(v_session,
ldap_base,
DBMS_LDAP.SCOPE_SUBTREE,
'objectclass=*', --'cn=TURKER',
my_attrs,
0,
my_message);
Thanks.Hi Nilay:
Can you tell me more about your environment. Im trying to reproduce this on my system. How are you executing this code?
Can you give me step by step what you are doing.
Thanks,
Jay -
Any more information on :IMAQ Count Objects" vi?
It looks like you are correct. I was thinking of the input to "Complex Measure", which requires the binary image. I started with IMAQ back when we had to chain all the routines together ourselves, instead of having a single vi that did everything for us.
Bruce
Bruce Ammons
Ammons Engineering -
F4_FILENAME_SERVER is not returning any value
Dear All,
I want a popup for the application server from where I can select file for further processing. I have used F4_FILENAME_SERVER, but the function module is not working. It is giving a popup with the filenames but after selection of a particular file if I select the check button, it is not returning anything (coming blank). Please can you suggest anything on this.
Thanks and regards,
AtanuTry using FM: /SAPDMC/LSM_F4_SERVER_FILE
*** Display Directories on the Application Server
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
EXPORTING
DIRECTORY = <directory_name>
* filemask = ''
IMPORTING
SERVERFILE = P_FILE
EXCEPTIONS
CANCELLED_BY_USER = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE W016 WITH P_FILE.
ENDIF.
Kind Regards
Eswar -
Point cloud clip doesn't return anything in the result table
Hi experts,
I am wondering why my point cloud clipping function does not return anything into the result table.
The boundaries of my point cloud are:
min long 316,500
max long 316,643.21
min lat 234,000
max lat 234,105.38
min elevation -4.79
max elevation 30.87
For the ind_dimquery I have tried different geometry types, like 3003 and 3008, usually with the elem_info_array (1,1007,3)
like in the following example:
SQL> declare
2 inp sdo_pc;
3 begin
4 select pc into inp from base109 where rownum=1;
5 insert into restst
6 select * from table(sdo_pc_pkg.clip_pc(
7 inp,
8 sdo_geometry(3003, 29903, null,
9 mdsys.sdo_elem_info_array(1,1007,3),
10 mdsys.sdo_ordinate_array(316510, 234080, -3, 316550, 234100, 2)),
11 null, null, null, null));
12 end;
13 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.20
SQL> select count(*) from restst;
COUNT(*)
0
What am I doing wrong? This should be a query window within the right area and I know that at least one point lies within this defined window.
Any help is greatly appreciated!!!!!
Cheers,
F.yes exactly, I have tried all of this already.
For a further example, there is a point in:
POINTS(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
R G B I POINT_ID
SDO_GEOMETRY(3001, 29903, SDO_POINT_TYPE(316503.49, 234089.46, 3.32), NULL, NULL
71 91 78 70 55
so theoretically, I'd feel that at the VERY LEAST this point should be in the 3008geometry and 1007 elem array for the coordinates for xmin, y min, zmin, xmax, ymax, zmax for
316500, 234080, 2, 316510, 234100, 5
but...nothing. Nothing in the result table.
For full query:
SQL> declare
2 inp sdo_pc;
3 begin
4 select pc into inp from base109 where rownum=1;
5 insert into restst
6 select * from table(sdo_pc_pkg.clip_pc(
7 inp,
8 sdo_geometry(3008, 29903, null,
9 mdsys.sdo_elem_info_array(1,1007,3),
10 mdsys.sdo_ordinate_array(316500, 234080, 2, 316510, 234100, 5)),
11 null, null, null, null));
12 end;
13 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.13
SQL> select count(*) from restst;
COUNT(*)
0 -
This script is not updating or returning anything..
This script is not updating or returning anything.. Ive also tried running it as a Stored Procedure but didnt get very far..
I'm reluctant to remove the line from the get_employee cursor that gets only one record..
Also, Ive got a couple of 'dbms_output..' lines to catch the employee number but nothing. Can anyone suggest how I at least debug it?
I can also supply it as Stored Procedure but I didnt really know how to run it and it just hung in UNIX at what looked at the last line number..
here's the code
/* Formatted on 2009/04/22 14:43 (Formatter Plus v4.8.7) */
SET serveroutput ON SIZE 1000000 FORMAT WRAPPED
SET verify OFF
SET feedback OFF
DECLARE
-- Debugging/error handling
-- Work variables
p_emp_number VARCHAR2 (14);
v_rec_cnt NUMBER := 0;
insert_flag VARCHAR2 (8);
job_exists VARCHAR2 (8);
err_num NUMBER;
err_msg VARCHAR2 (150);
err_line VARCHAR2 (350);
err_seq NUMBER := 0;
l_date DATE := SYSDATE;
l_validate BOOLEAN DEFAULT FALSE;
l_ass_obj NUMBER;
l_emp_obj NUMBER;
l_default_code_comb_id NUMBER := 217269;
l_datetrack_update_mode VARCHAR2 (30) := 'CORRECTION';
l_organization_id NUMBER := 0;
l_concatenated_segments VARCHAR2 (240);
l_soft_coding_keyflex_id NUMBER;
l_comment_id NUMBER;
l_effective_end_date DATE
:= TO_DATE ('17-FEB-2059', 'DD-MON-YYYY');
l_no_managers_warning BOOLEAN;
l_special_ceiling_step_id NUMBER;
l_people_group_id NUMBER;
l_group_name VARCHAR2 (30);
l_entries_changed_warning VARCHAR2 (30);
l_spp_delete_warning BOOLEAN;
l_org_now_no_manager_warning BOOLEAN;
l_tax_district_changed_warning BOOLEAN;
l_other_manager_warning BOOLEAN;
l_business_group_id NUMBER := 0;
l_person_id NUMBER;
l_assignment_number VARCHAR2 (35);
l_style VARCHAR2 (4) := 'GB';
ip_p_address_id NUMBER;
l_effective_date DATE := SYSDATE;
l_date_from DATE := SYSDATE;
l_date_to DATE := NULL;
-- CURSOR 1 - get all Existing Employees (well, for testing purps.. just Peter Barlow for now..)
CURSOR c_get_employee_details
IS
SELECT DISTINCT per.person_id, per.employee_number, per.full_name,
paas.assignment_id, paas.supervisor_id,
paas.default_code_comb_id
FROM per_all_people_f per, per_all_assignments_f paas
WHERE per.employee_number = p_emp_number
AND paas.person_id(+) = per.person_id
AND per.person_id = '30188';
-- CURSOR 2 - get all Existing Employees (well, for testing purps.. just Peter Barlow for now..)
CURSOR c_check_employee (p_emp_number VARCHAR2)
IS
SELECT DISTINCT per.person_id, per.employee_number, per.full_name,
paas.assignment_id, paas.supervisor_id,
paas.default_code_comb_id
FROM per_all_people_f per, per_all_assignments_f paas
WHERE per.employee_number = p_emp_number
AND paas.person_id(+) = per.person_id
AND per.person_id = '30188';
emp_rec c_check_employee%ROWTYPE;
-- Cursor 3 to SELECT all existing Employees that DO NOT have a JOB specified.
/* CURSOR c_check_emps_job (p_emp_number VARCHAR2)
IS
SELECT DISTINCT per.person_id, per.full_name, paas.assignment_id,
paas.supervisor_id, paas.default_code_comb_id
FROM per_all_people_f per, per_all_assignments_f paas
WHERE per.employee_number = p_emp_number
AND paas.person_id(+) = per.person_id
AND paas.job_id IS NULL
AND per.person_id = '30188';
empjob_rec c_check_emps_job%ROWTYPE;
-- Cursor 4 retrieves latest Object Version Number from per_assignments_f table..
CURSOR csr_ass_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;
BEGIN
-- UPDATE of EXISTING Employees Details from work table..
FOR v_emp IN c_get_employee_details
LOOP
-- determine whether customer already exists
OPEN c_check_employee (v_emp.employee_number);
FETCH c_check_employee
INTO emp_rec;
IF c_check_employee%FOUND
THEN
insert_flag := 'I';
DBMS_OUTPUT.PUT_LINE ('Employee No: ' || v_emp.employee_number);
ELSE
DBMS_OUTPUT.PUT_LINE ( 'Employee No: '
|| v_emp.employee_number
|| ' has not been found! '
insert_flag := 'X';
END IF;
CLOSE c_check_employee;
-- determine which customers already have been assigned a Job
/* OPEN c_check_emps_job (v_emp.employee_number);
FETCH c_check_emps_job
INTO empjob_rec;
IF c_check_emps_job%FOUND
THEN job_exists := 'X'; -- so we're wanting all those with job_exists := 'X'..
ELSE job_exists := 'I';
END IF;
CLOSE c_check_employee;
-- Obtain the most recent Object Version Number..
OPEN csr_ass_ovn (v_emp.person_id);
FETCH csr_ass_ovn
INTO l_ass_obj;
CLOSE csr_ass_ovn;
-- Now Update PER_ALL_PEOPLE_F and PER_ASSIGNMENTS with default Cost Code '9999'
IF insert_flag = 'I'
THEN
BEGIN
DBMS_OUTPUT.PUT_LINE ( ' Updating Employee..:' || v_emp.employee_number );
-- Importing Emp Job, Default Cost Code and Supervisor details --
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 => v_emp.assignment_id,
--- ** REQUIRED FIELD **
p_object_version_number => l_ass_obj,
p_supervisor_id => v_emp.supervisor_id,
p_default_code_comb_id => l_default_code_comb_id,
p_concatenated_segments => l_concatenated_segments,
p_soft_coding_keyflex_id => l_soft_coding_keyflex_id,
p_comment_id => l_comment_id,
p_effective_start_date => l_date, --IN/OUT
p_effective_end_date => l_effective_end_date,
p_no_managers_warning => l_no_managers_warning,
p_other_manager_warning => l_other_manager_warning
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 => v_emp.assignment_id,
--- ** REQUIRED FIELD **
p_object_version_number => l_ass_obj,
p_organization_id => l_organization_id,
-- p_location_id => std_location_id,
-- p_job_id => l_job_id,
-- p_position_id => std_position_id,
p_special_ceiling_step_id => l_special_ceiling_step_id,
p_effective_start_date => l_date,
p_effective_end_date => l_effective_end_date,
p_people_group_id => l_people_group_id,
p_group_name => l_group_name,
p_org_now_no_manager_warning => l_org_now_no_manager_warning,
p_other_manager_warning => l_other_manager_warning,
p_spp_delete_warning => l_spp_delete_warning,
p_entries_changed_warning => l_entries_changed_warning,
p_tax_district_changed_warning => l_tax_district_changed_warning
DBMS_OUTPUT.PUT_LINE ( ' Employee Updated..:'
|| v_emp.employee_number
-- End of customer related details
END;
END IF;
END LOOP;
COMMIT;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
ROLLBACK;
-- DBMS_OUTPUT.PUT_LINE ( '"No Data Found" for Employee:' || v_emp.employee_number || SQLERRM );
WHEN OTHERS
THEN
ROLLBACK;
err_num := TO_CHAR (SQLCODE);
err_msg := SUBSTR (SQLERRM, 1, 150);
err_line :=
'Oracle error (seqno='
|| err_seq
|| ') '
|| err_num
|| ' occurred processing record '
|| TO_CHAR (v_rec_cnt + 1)
|| ' : '
|| err_msg;
DBMS_OUTPUT.PUT_LINE (err_line);
INSERT INTO SU_SL_ERRORS
VALUES (err_num, err_msg, SYSTIMESTAMP);
END;
EXIT;Hi
Check if that works for you
/* Formatted on 2009/04/22 14:43 (Formatter Plus v4.8.7) */
SET serveroutput ON SIZE 1000000 FORMAT WRAPPED
SET verify OFF
SET feedback OFF
DECLARE
-- Debugging/error handling
-- Work variables
p_emp_number VARCHAR2 (14);
v_rec_cnt NUMBER := 0;
insert_flag VARCHAR2 (8);
job_exists VARCHAR2 (8);
err_num NUMBER;
err_msg VARCHAR2 (150);
err_line VARCHAR2 (350);
err_seq NUMBER := 0;
l_date DATE := SYSDATE;
l_validate BOOLEAN DEFAULT FALSE;
l_***_obj NUMBER;
l_emp_obj NUMBER;
l_default_code_comb_id NUMBER := 217269;
l_datetrack_update_mode VARCHAR2 (30) := 'CORRECTION';
l_organization_id NUMBER := 0;
l_concatenated_segments VARCHAR2 (240);
l_soft_coding_keyflex_id NUMBER;
l_comment_id NUMBER;
l_effective_end_date DATE
:= TO_DATE ('17-FEB-2059', 'DD-MON-YYYY');
l_no_managers_warning BOOLEAN;
l_special_ceiling_step_id NUMBER;
l_people_group_id NUMBER;
l_group_name VARCHAR2 (30);
l_entries_changed_warning VARCHAR2 (30);
l_spp_delete_warning BOOLEAN;
l_org_now_no_manager_warning BOOLEAN;
l_tax_district_changed_warning BOOLEAN;
l_other_manager_warning BOOLEAN;
l_business_group_id NUMBER := 0;
l_person_id NUMBER;
l_assignment_number VARCHAR2 (35);
l_style VARCHAR2 (4) := 'GB';
ip_p_address_id NUMBER;
l_effective_date DATE := SYSDATE;
l_date_from DATE := SYSDATE;
l_date_to DATE := NULL;
-- CURSOR 1 - get all Existing Employees (well, for testing purps..
just Peter Barlow for now..)
CURSOR c_get_employee_details
IS
SELECT DISTINCT per.person_id, per.employee_number, per.full_name,
paas.assignment_id, paas.supervisor_id,
paas.default_code_comb_id
FROM per_all_people_f per, per_all_assignments_f paas
WHERE per.employee_number = p_emp_number
AND paas.person_id(+) = per.person_id
AND per.person_id = '30188';
-- CURSOR 2 - get all Existing Employees (well, for testing purps.. just Peter Barlow for now..)
CURSOR c_check_employee (p_emp_number VARCHAR2)
IS
SELECT DISTINCT per.person_id, per.employee_number, per.full_name,
paas.assignment_id, paas.supervisor_id,
paas.default_code_comb_id
FROM per_all_people_f per, per_all_assignments_f paas
WHERE per.employee_number = p_emp_number
AND paas.person_id(+) = per.person_id
AND per.person_id = '30188';
emp_rec c_check_employee%ROWTYPE;
-- Cursor 4 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;
BEGIN
-- UPDATE of EXISTING Employees Details from work table..
FOR v_emp IN c_get_employee_details
LOOP
-- determine whether customer already exists
OPEN c_check_employee (v_emp.employee_number);
LOOP
FETCH c_check_employee
INTO emp_rec;
IF c_check_employee%FOUND
THEN
insert_flag := 'I';
DBMS_OUTPUT.PUT_LINE ('Employee No: ' || v_emp.employee_number);
ELSE
DBMS_OUTPUT.PUT_LINE ( 'Employee No: '
|| v_emp.employee_number
|| ' has not been found! '
insert_flag := 'X';
END IF;
END LOOP;
CLOSE c_check_employee;
-- Obtain the most recent Object Version Number..
OPEN csr_***_ovn (v_emp.person_id);
LOOP
FETCH csr_***_ovn
INTO l_***_obj;
END LOOP;
CLOSE csr_***_ovn;
-- Now Update PER_ALL_PEOPLE_F and PER_ASSIGNMENTS with default Cost Code '9999'
IF insert_flag = 'I'
THEN
BEGIN
DBMS_OUTPUT.PUT_LINE ( ' Updating Employee..:' || v_emp.employee_number );
-- Importing Emp Job, Default Cost Code and Supervisor details --
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 => v_emp.assignment_id,
--- ** REQUIRED FIELD **
p_object_version_number => l_***_obj,
p_supervisor_id => v_emp.supervisor_id,
p_default_code_comb_id => l_default_code_comb_id,
p_concatenated_segments => l_concatenated_segments,
p_soft_coding_keyflex_id => l_soft_coding_keyflex_id,
p_comment_id => l_comment_id,
p_effective_start_date => l_date, --IN/OUT
p_effective_end_date => l_effective_end_date,
p_no_managers_warning => l_no_managers_warning,
p_other_manager_warning => l_other_manager_warning
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 => v_emp.assignment_id,
--- ** REQUIRED FIELD **
p_object_version_number => l_***_obj,
p_organization_id => l_organization_id,
-- p_location_id => std_location_id,
-- p_job_id => l_job_id,
-- p_position_id => std_position_id,
p_special_ceiling_step_id => l_special_ceiling_step_id,
p_effective_start_date => l_date,
p_effective_end_date => l_effective_end_date,
p_people_group_id => l_people_group_id,
p_group_name => l_group_name,
p_org_now_no_manager_warning => l_org_now_no_manager_warning,
p_other_manager_warning => l_other_manager_warning,
p_spp_delete_warning => l_spp_delete_warning,
p_entries_changed_warning => l_entries_changed_warning,
p_tax_district_changed_warning => l_tax_district_changed_warning
DBMS_OUTPUT.PUT_LINE ( ' Employee Updated..:'
|| v_emp.employee_number
-- End of customer related details
END;
END IF;
END LOOP;
COMMIT;
END;
EXIT;Thanks -
Apple TV 1 is used exclusively for music playback. The device is often in use 4 to 8 hours daily. I have had no problems with it in over two years of use. In the last few weeks it has started a new behaviour.
At random times but not always, it will simply stop playing the playlist and return to a menu screen. Playing music again requires selecting a playlist and pressing play. The device continues working and does not require restarting or resetting.
I have browsed the topics for Apple TV 1 and have not found anything similar to this problem.Welcome to the Apple Community.
Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first. -
Restlet Error "The server has not found anything matching the request URI"
I want to serve some static html pages along with my restlet services from the same app ( running in Tomcat )
Here is my web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>first steps servlet</display-name>
<!-- Application class name -->
<context-param>
<param-name>org.restlet.application</param-name>
<param-value>
firstSteps.FirstStepsApplication
</param-value>
</context-param>
<!-- Restlet adapter -->
<servlet>
<servlet-name>RestletServlet</servlet-name>
<servlet-class>
org.restlet.ext.servlet.ServerServlet
</servlet-class>
</servlet>
<!-- Catch all requests -->
<servlet-mapping>
<servlet-name>RestletServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
Here is my Application router class
public class FirstStepsApplication extends Application
@Override
public synchronized Restlet createInboundRoot()
Router router = new Router(getContext());
// Defines only one route
router.attach("/hello", HelloWorldResource.class);
router.attach("/login", LoginResource.class);
router.attach("/", BasicResource.class);
return router;
}I've gone back to the basic first steps example.
It works fine if the url pattern is <url-pattern>/*</url-pattern>
localhost/rest/login returns a string from my LoginResource, same too for /hello
However a static html page I have /Mypage.html does not get returned when I enter the URL /MyPage.html
However, if I then modify the url pattern to be
<url-pattern>/login</url-pattern>
and then enter the url /MyPage.html I will get the html page.
But ...... I get the error "The server has not found anything matching the request URI" when I enter the url /login which worked ok the first case.
What must I do in order for both Restlet & Static HTML resources to work together?
Thanks ... Jyes, basicResource is my own class. It's a catch all for restlet requests that don't match any of the other ones. It just returns String = "My catch all resource"
Because you highlighted it I decided to try and remove it from my Restlet Router. Presto, it now works, the login & hello requests are serviced by my Restlet resources and the MyPage.html requests are served the mypage.html file. This now brings another question. If from my servlet mapping in web.xml all urls are to be handled by restlet "/*", how then does a mypage.html request not get serviced by my restlet? Seems to be just passed through the restlet framework when there is no router to match it? what do you think? -
IPhone 4 does not detect anything on Bluetooth
My iPhone 4 has appearantly a glitch in hardware...??? I turn on bluetooth and it can search for devices till the battery runs out and that's it. I don't think that this is a software error, as there are plenty of iP4's amongst my friends who don't experience this error with the same iOS version as I have.
ANything I can do about it, or I just have to return it to my seller and ask for repairs?
Tnx
LaurisI can't pair it with anything, cause it just does not detect anything. Try to imagine... You go to settings--->bluetooth--->turn it ON and that is it! It starts the search and never finishes... The phone can search till the battery dies, but nothing. And I know that a friends iPhone can connect ot my cars bluetooth, but mine does not even find it. Finds nothing... NO apple gadgets, no other gadgets... It would be a success if it would find something and then the pairing would be a different issues, but if the search for a device never stops (not even to show that the iPhone can't find anything)...then I'm confused... and dissapointed..
Maybe you are looking for
-
Aging out user profiles in Call Manager
If a user profile is deleted in AD what is the length of time before that user is "aged out" / removed from the CUCM and CUC user DB? Is there a difference between how it works in 4.1 with Cisco Customer Directory Configuration Plug In vs. LDAP Synch
-
I added a new hard disk now iPhoto doesn't work - help?
I had to have a new internal hard drive and even though some of my work was recoverable from the old disk I cannot now use iPhoto or iPages or Keynote or Numbers. What can I do to recover these apps?
-
How do I copy a clip from one project to another
Hello I want to use some portions of a clip that I have modifyed to another new project. I tried with copy/past, but they are not transfered to the new project. Thanks anticipated Roberto
-
The app stor tells me I have a message when I down load it tells me it can not conect?
-
Hi,guys can anyone tell me how logical does database run? such as 'PNP'. please provide me some web sites to study. thanks in advance. qiuguo