Packaged App Document Library 0.91 installs with errors in Apex 3.0

Hello All,
I get these errors when I try to install Document Library packaged application in Apex 3.0
Script name          success          errors          total
tab.sql               137          1          137
doclib.pkb          0          1          1
sync_index.sql          1          1          2
When I try to run the app, I am prompted for user name and password. I enter the user name I’ve selected during the install process as parsing schema, and I get this error:
ORA-04063: package body "DOADMIN.DOCLIB" has errors ORA-06508: PL/SQL: could not find program unit being called: "DOADMIN.DOCLIB"
ERR-1082 Error in executing authorization scheme code.
How can I find the object that caused errors during install? Is there any installation log?
Thank you,
Daniel

I’ve attempted to install the document library app into completely new workspace, with new parsing user. I still get the same errors:
Errors     
tab.sql
create index doclib_docs_idx2 on doclib_documents(contents) indextype is ctxsys.context
ORA-29833: indextype does not exist
doclib.pkb
create or replace package body doclib as
g_html_email_header constant varchar2(4000) := '<html lang="en-us" xmlns:htmldb="http://htmldb.oracle.com">
<head>
<style type="text/css">
*{font-size:12px;font-family:Arial, Helvetica, Geneva, sans-serif;}
body{background-color:#fff;margin:0;padding:0;font-family:Arial, Helvetica, Geneva, sans-serif;font-size:12px;}
body *{font-size:12px;}
img{border:0;margin:0;}
hr{color:#bbb;height:1px;}
br{clear:both;}
p{font-size:12px;}
a:link,a:visited{text-decoration:none;font-size:-1;color:#7f7f7f;}
a:active,a:hover{text-decoration:underline;font-size:-1;color:#ff6600;}
</style>
<title></title>
<body>';
g_html_email_footer constant varchar2(30) := '</body></html>';
function get_member_id (
p_user_name in varchar2
) return number
is
l_user_id number;
begin
for c1 in (select user_id
from doclib_members
where upper(p_user_name) = user_name ) loop
l_user_id := c1.user_id;
end loop;
return l_user_id;
end get_member_id;
function get_member_email (
p_user_name in varchar2
) return varchar2
is
l_email varchar2(255);
begin
for c1 in (select email_address
from doclib_members
where upper(p_user_name) = user_name ) loop
l_email := c1.email_address;
end loop;
return l_email;
end get_member_email;
function get_acl_id (
p_user_name in varchar2
) return number
is
l_acl_id number := 0;
begin
for c1 in (select role_id
from doclib_members
where upper(p_user_name) = user_name ) loop
l_acl_id := c1.role_id;
end loop;
return l_acl_id;
return 3;
end get_acl_id;
function get_local_name (
p_filename in varchar2
) return varchar2
is
begin
return substr(p_filename,instr(p_filename,'/')+1);
end get_local_name;
function doc_is_checkedout_by (
p_doc_id in varchar2
) return varchar2
is
begin
for c1 in (select checkedout_by
from doclib_documents
where doc_id = p_doc_id ) loop
return c1.checkedout_by;
end loop;
return null;
end doc_is_checkedout_by;
function get_doc_name (
p_doc_id in varchar2
) return varchar2
is
begin
for c1 in (select name
from doclib_documents
where doc_id = p_doc_id ) loop
return c1.name;
end loop;
return null;
end get_doc_name;
function doc_already_exists (
p_name in varchar2
) return boolean
is
begin
for c1 in (select null
from doclib_documents
where name = p_name ) loop
return true;
end loop;
return false;
end doc_already_exists;
function alert_todo_already_exists (
p_user_id in number
) return boolean
is
l_found boolean := false;
begin
for c1 in (select null
from doclib_alerts a, doclib_alerts_todo b
where a.alert_id = b.alert_id
and a.doctask_id = 0
and a.user_id = p_user_id ) loop
l_found := true;
exit;
end loop;
return l_found;
end alert_todo_already_exists;
function parse_search_string(
p_search_str in varchar2 ) return varchar2
is
l_temp_value varchar2(1000);
l_temp_value2 varchar2(1000);
l_return_value varchar2(1000) := NULL;
l_start_token number := 1;
l_in_token boolean := FALSE;
l_quotes number;
l_phrases dbms_sql.varchar2s;
n number;
begin
if nvl(length(p_search_str),0) = 0 then
return NULL;
end if;
l_quotes := length(p_search_str) - length(replace(p_search_str,'"', ''));
if ( l_quotes > 0 and mod(l_quotes,2) = 0 ) then
l_temp_value2 := lower(p_search_str);
for i in 1 .. l_quotes/2 loop
n := instr( l_temp_value2, '"' );
l_temp_value := l_temp_value || substr( l_temp_value2, 1, n-1 );
l_temp_value2 := substr( l_temp_value2, n+1 );
n := instr( l_temp_value2, '"' );
l_phrases(i) := substr( l_temp_value2, 1, n-1 );
l_temp_value2 := substr( l_temp_value2, n+1 );
end loop;
l_temp_value := l_temp_value || l_temp_value2;
else
l_temp_value := lower(p_search_str);
end if;
l_temp_value := trim(replace( l_temp_value, ':', ' '));
l_temp_value := trim(replace( l_temp_value, ';', ' '));
l_temp_value := trim(replace( l_temp_value, '"', ' '));
l_temp_value := trim(replace( l_temp_value, ':'',', ' '));
l_temp_value := trim(replace( l_temp_value, '(', ' '));
l_temp_value := trim(replace( l_temp_value, ')', ' '));
l_temp_value := trim(replace( l_temp_value, '!', ' '));
l_temp_value := trim(replace( l_temp_value, '&', ' '));
l_temp_value := trim(replace( l_temp_value, '+', ' '));
l_temp_value := trim(replace( l_temp_value, '-', ' '));
l_temp_value := trim(replace( l_temp_value, ',', ' '));
l_temp_value := trim(replace( l_temp_value, '\', ' '));
l_temp_value := trim(replace( l_temp_value, ' and ', ' ' ));
l_temp_value := trim(replace( l_temp_value, ' or ', ' ' ));
if length(l_temp_value) > 0 then
l_in_token := TRUE;
end if;
for i in 1..nvl(length(l_temp_value),0) loop
if substr(l_temp_value,i,1) = ' ' then
if l_in_token = TRUE then
l_return_value := l_return_value || '{' || substr(l_temp_value,l_start_token, i-l_start_token) || '}' || ' and ';
l_in_token := FALSE;
end if;
elsif l_in_token = FALSE then
l_in_token := TRUE;
l_start_token := i;
end if;
end loop;
if l_in_token = TRUE then
l_return_value := l_return_value || '{' || substr(l_temp_value,l_start_token) || '} and ';
end if;
for i in 1 .. nvl(l_phrases.count,0) loop
l_return_value := l_return_value || ' {' || l_phrases(i) || '} and ';
end loop;
return trim( substr( l_return_value, 1, length(l_return_value)-4 ) );
end parse_search_string;
function doc_has_revisions (
p_doc_id in varchar2
) return number
is
l_revisions number := 0;
begin
for c1 in (select count(*) cnt
from doclib_documents
where deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
and revision_of = p_doc_id ) loop
l_revisions := c1.cnt;
end loop;
return l_revisions;
end doc_has_revisions;
function get_checkout_list (
p_user_name in varchar2
) return varchar2
is
l_chkout_lst varchar2(32000);
begin
for c1 in (select '<li>'||name||'</li>' name
from doclib_documents
where deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
and revision_of = 0
and checkedout_by = p_user_name ) loop
l_chkout_lst := l_chkout_lst || c1.name;
end loop;
if l_chkout_lst is null then
l_chkout_lst := 'None.';
else
l_chkout_lst := '<ul>'||l_chkout_lst||'</ul>';
end if;
return l_chkout_lst;
end get_checkout_list;
procedure return_xml (
p_doc_id in number,
p_action in varchar2,
p_message in varchar2,
p_chkout_lst in varchar2,
p_result in varchar2,
p_user_name in varchar2
is
begin
owa_util.mime_header('text/xml', FALSE );
htp.p('Cache-Control: no-cache');
htp.p('Pragma: no-cache');
owa_util.http_header_close;
htp.p('<div class="return" id="'||p_doc_id||'" action="'||p_action||'" result="'||p_result||'">');
htp.p('<div class="message" id="primary">'||p_message||'</div>');
htp.p('<div class="message" id="chkoutlst">'||p_chkout_lst||'</div>');
htp.p('<div id="checkoutby">'||p_user_name||'</div>');
htp.p('<div id="modifiedby">'||p_user_name||'</div>');
htp.p('</div>');
end;
procedure add_document (
p_doc_id in varchar2 default null,
p_name in varchar2 default null,
p_filename in varchar2,
p_user_name in varchar2,
p_description in varchar2,
p_attr1 in varchar2,
p_attr2 in varchar2,
p_attr3 in varchar2
is
l_content blob;
l_mime_type varchar2(48);
l_name varchar2(255);
begin
if get_acl_id(p_user_name) < 2 then
raise_application_error(-20001,'You are not authorized to add documents.');
end if;
if p_name is null then
l_name := get_local_name(p_filename);
for c1 in (select doc_id, name
from doclib_documents
where revision_of = 0
and name = l_name ) loop
--document already exists, so update it
update_document(c1.doc_id, c1.name, p_filename, p_user_name, p_description, p_attr1, p_attr2, p_attr3);
goto end_add;
end loop;
else
l_name := p_name;
end if;
for c1 in (select mime_type, blob_content
from apex_application_files
where name = p_filename ) loop
l_content := c1.blob_content;
l_mime_type := c1.mime_type;
end loop;
insert
into doclib_documents (doc_id, name, description, mime_type, contents, attr1, attr2, attr3)
values (p_doc_id, l_name, p_description, l_mime_type, l_content, p_attr1, p_attr2, p_attr3);
delete
from apex_application_files
where name = p_filename;
if p_name is null then
do_alerts('D',0,null);
end if;
commit;
<<end_add>>
null;
exception when others then
raise_application_error(-20001, 'Exception encountered adding document: '||sqlerrm);
end add_document;
procedure add_member (
p_user_name in varchar2,
p_member in varchar2,
p_email in varchar2,
p_acl_id in varchar2
is
begin
if get_acl_id(p_user_name) < 3 then
raise_application_error(-20001,'You are not authorized to add members.');
end if;
insert
into doclib_members (user_name, email_address, role_id)
values (p_member, p_email, p_acl_id);
commit;
exception when dup_val_on_index then
raise_application_error(-20001,'The user is already a member of this workspace.');
when others then
raise_application_error(-20001,'Exception encountered adding member: '||sqlerrm);
end add_member;
procedure add_task (
p_user_name in varchar2,
p_assigned_to in varchar2,
p_name in varchar2,
p_description in varchar2,
p_start_date in varchar2,
p_end_date in varchar2,
p_priority in varchar2,
p_status in varchar2,
p_pct_complete in varchar2,
p_doc_id in varchar2
is
l_start_date date;
l_due_date date;
begin
if get_acl_id(p_user_name) < 2 then
raise_application_error(-20001,'You are not authorized to add tasks.');
end if;
l_start_date := to_date(p_start_date,'DD-MM-YYYY HH24:MI');
l_due_date := to_date(p_end_date, 'DD-MM-YYYY HH24:MI');
insert
into doclib_tasks (assigned_to, name, description, start_date, due_date, priority_id, status_id, pct_complete, doc_id)
values (p_assigned_to, p_name, p_description, l_start_date, l_due_date, p_priority, p_status, p_pct_complete, p_doc_id);
do_alerts('T',0,null);
commit;
exception when others then
raise_application_error(-20001,'Exception encountered adding task: '||sqlerrm);
end add_task;
procedure add_link (
p_user_name in varchar2,
p_name in varchar2,
p_url in varchar2
is
begin
if get_acl_id(p_user_name) < 2 then
raise_application_error(-20001,'You are not authorized to add links.');
end if;
insert
into doclib_links (name, url)
values (p_name, p_url);
commit;
exception when others then
raise_application_error(-20001,'Exception encountered adding link: '||sqlerrm);
end add_link;
procedure add_announcement (
p_user_name in varchar2,
p_title in varchar2,
p_description in varchar2,
p_expire_date in varchar2
is
l_expire_date date;
begin
if get_acl_id(p_user_name) < 2 then
raise_application_error(-20001,'You are not authorized to add announcements.');
end if;
l_expire_date := to_date(p_expire_date,'DD-MM-YYYY HH24:MI');
insert
into doclib_announcements (title, description, expire_date)
values (p_title, p_description, l_expire_date);
commit;
exception when others then
raise_application_error(-20001,'Exception encountered adding announcement: '||sqlerrm);
end add_announcement;
procedure add_alert (
p_user_name in varchar2,
p_alert_type in varchar2,
p_alert_interval in varchar2,
p_doctask_id in varchar2
is
l_user_id number;
begin
l_user_id := get_member_id(p_user_name);
insert
into doclib_alerts (user_id, alert_type, alert_interval, doctask_id)
values (l_user_id, p_alert_type, p_alert_interval, p_doctask_id);
commit;
exception when others then
raise_application_error(-20001,'Exception adding alert: '||sqlerrm);
end add_alert;
procedure delete_alert (
p_alert_id in varchar2
is
begin
delete
from doclib_alerts
where alert_id = p_alert_id;
commit;
end delete_alert;
procedure do_alerts (
p_alert_type in varchar2,
p_doctask_id in number,
p_newdoc_id in number default null
is
l_subject varchar2(2000);
l_url varchar2(4000);
l_body clob;
l_body_html clob;
begin
l_body := ' ';
if p_alert_type = 'D' then
--Do document alerts on specific document
if p_doctask_id != 0 then
for c1 in (select c.email_address, c.user_id, b.name, a.alert_interval, a.alert_id
from doclib_alerts a, doclib_documents b, doclib_members c
where a.alert_type = p_alert_type
and a.doctask_id = b.doc_id
and a.user_id = c.user_id
and a.doctask_id = p_doctask_id ) loop
l_subject := 'Document '||c1.name||' has been updated.';
l_url := v('BASE_URL')||'/f?p='||v('APP_ID')||':2:::::P2_DOC_ID:'||p_newdoc_id;
l_body_html := g_html_email_header||'<p />'||l_subject||'<p />Click to view.'||
g_html_email_footer;
if c1.alert_interval = 'I' then
apex_mail.send(
p_to => c1.email_address,
p_from => c1.email_address,
p_body => l_body,
p_body_html => l_body_html,
p_subj => l_subject );
else --it is a daily alert, insert into todos
if not alert_todo_already_exists(c1.user_id) then --make sure non-specific daily alert isn't already recorded
insert
into doclib_alerts_todo (alert_id, alert_url)
values (c1.alert_id, l_url);
end if;
end if;
end loop;
update doclib_alerts
set doctask_id = p_newdoc_id
where alert_type = 'D'
and doctask_id = p_doctask_id;
end if;
--Do document alerts on generic documents
for c1 in (select c.email_address, c.user_id, a.alert_id, a.alert_interval
from doclib_alerts a, doclib_members c
where a.alert_type = p_alert_type
and a.doctask_id = 0
and a.user_id = c.user_id ) loop
l_subject := 'A document has been added or updated in the document workspace.';
l_url := v('BASE_URL')||'/f?p='||v('APP_ID')||':1';
l_body_html := g_html_email_header||'<p />'||l_subject||'<p />Click to view.'||
g_html_email_footer;
if c1.alert_interval = 'I' then
apex_mail.send(
p_to => c1.email_address,
p_from => c1.email_address,
p_body => l_body,
p_body_html => l_body_html,
p_subj => l_subject );
else --it is a daily alert, insert into todos
if not alert_todo_already_exists(c1.user_id) then --make sure non-specific daily alert isn't already recorded
insert
into doclib_alerts_todo (alert_id, alert_url)
values (c1.alert_id, l_url);
end if;
end if;
end loop;
else
if p_doctask_id != 0 then
--Do task alerts on specific tasks
for c1 in (select c.email_address, c.user_id, b.name, a.alert_interval, a.alert_id
from doclib_alerts a, doclib_tasks b, doclib_members c
where a.alert_type = p_alert_type
and a.doctask_id = b.task_id
and a.user_id = c.user_id
and a.doctask_id = p_doctask_id ) loop
l_subject := 'Task '||c1.name||' has been updated.';
l_url := v('BASE_URL')||'/f?p='||v('APP_ID')||':75:::::P75_TASK_ID:'||p_doctask_id;
l_body_html := g_html_email_header||'<p />'||l_subject||'<p />Click to view.'||
g_html_email_footer;
if c1.alert_interval = 'I' then
apex_mail.send(
p_to => c1.email_address,
p_from => c1.email_address,
p_body => l_body,
p_body_html => l_body_html,
p_subj => l_subject );
else --it is a daily alert, insert into todos
if not alert_todo_already_exists(c1.user_id) then --make sure non-specific daily alert isn't already recorded
insert
into doclib_alerts_todo (alert_id, alert_url)
values (c1.alert_id, l_url);
end if;
end if;
end loop;
end if;
--Do task alerts on generic tasks
for c1 in (select c.email_address, c.user_id, a.alert_id, a.alert_interval
from doclib_alerts a, doclib_members c
where a.alert_type = p_alert_type
and a.doctask_id = 0
and a.user_id = c.user_id ) loop
l_subject := 'A task has been added or updated in the document workspace.';
l_url := v('BASE_URL')||'/f?p='||v('APP_ID')||':1';
l_body_html := g_html_email_header||'<p />'||l_subject||'<p />Click to view.'||
g_html_email_footer;
if c1.alert_interval = 'I' then
apex_mail.send(
p_to => c1.email_address,
p_from => c1.email_address,
p_body => l_body,
p_body_html => l_body_html,
p_subj => l_subject );
else --it is a daily alert, insert into todos
if not alert_todo_already_exists(c1.user_id) then --make sure non-specific daily alert isn't already recorded
insert
into doclib_alerts_todo (alert_id, alert_url)
values (c1.alert_id, l_url);
end if;
end if;
end loop;
end if;
end do_alerts;
procedure do_alert_todos
is
l_subject varchar2(2000);
l_body clob;
l_body_html clob;
begin
wwv_flow_api.set_security_group_id;
l_body := ' ';
l_subject := 'Documents or tasks have been updated.';
for c1 in (select distinct(c.email_address), b.user_id
from doclib_members c, doclib_alerts b, doclib_alerts_todo a
where a.alert_id = b.alert_id
and b.user_id = c.user_id ) loop
l_body_html := g_html_email_header||'<p />The following documents or tasks have been added or updated.';
for c2 in (select b.alert_url
from doclib_alerts a, doclib_alerts_todo b
where a.alert_id = b.alert_id
and a.user_id = c1.user_id ) loop
l_body_html := l_body_html || '<p />'||c2.alert_url||'';
end loop;
l_body_html := l_body_html ||g_html_email_footer;
apex_mail.send(
p_to => c1.email_address,
p_from => c1.email_address,
p_body => l_body,
p_body_html => l_body_html,
p_subj => l_subject );
end loop;
delete from doclib_alerts_todo;
commit;
end do_alert_todos;
procedure update_document (
p_doc_id in varchar2,
p_name in varchar2,
p_filename in varchar2,
p_user_name in varchar2,
p_description in varchar2,
p_attr1 in varchar2,
p_attr2 in varchar2,
p_attr3 in varchar2
is
l_doc_id number;
l_checked_out_by varchar2(255);
l_mime_type varchar2(48);
l_cnt number;
l_num_over number;
begin
if get_acl_id(p_user_name) < 2 then
raise_application_error(-20001,'You are not authorized to update documents.');
end if;
l_checked_out_by := doc_is_checkedout_by(p_doc_id);
--this can be optimistic locking mechanism
if l_checked_out_by is not null and upper(l_checked_out_by) != upper(p_user_name) then
raise_application_error(-20001,'This document is locked by '||l_checked_out_by);
end if;
for c1 in (select mime_type
from apex_application_files
where name = p_filename ) loop
l_mime_type := c1.mime_type;
end loop;
for c1 in (select mime_type
from doclib_documents
where doc_id = p_doc_id ) loop
if l_mime_type != c1.mime_type then
delete
from apex_application_files
where name = p_filename;
raise_application_error(-20001,'The document type to be checked in does not match the document type of the original document.');
end if;
end loop;
if l_checked_out_by is not null then
checkin(p_doc_id, p_user_name);
end if;
l_doc_id := doclib_nextval;
add_document(l_doc_id, p_name, p_filename, p_user_name, p_description, p_attr1, p_attr2, p_attr3);
update doclib_documents
set revision_of = l_doc_id
where doc_id = p_doc_id;
l_cnt := 1;
for c1 in (select count(*) cnt
from doclib_documents
where revision_of != 0
and deleted_as_of = to_date('22-04-2004','DD-MM-YYYY') -- don't count logically deleted docs
and name = p_name ) loop
l_cnt := l_cnt + c1.cnt;
end loop;
--check whether we have hit max revisions as defined in workspace setting
if v('DOC_WORKSPACE_VERSIONS') != '0' and l_cnt > to_number(v('DOC_WORKSPACE_VERSIONS')) then
l_num_over := l_cnt - to_number(v('DOC_WORKSPACE_VERSIONS'));
for c2 in (select doc_id
from (select doc_id
from doclib_documents
where name = p_name
order by version_no)
where rownum <= l_num_over ) loop
delete
from doclib_documents
where doc_id = c2.doc_id;
end loop;
end if;
update doclib_documents
set revision_of = l_doc_id
where (revision_of != 0 or deleted_as_of != to_date('22-04-2004','DD-MM-YYYY'))
and name = p_name;
--preserve lock
if l_checked_out_by is not null then
update doclib_documents
set checkedout_by = l_checked_out_by
where doc_id = l_doc_id;
end if;
--do alerts
do_alerts('D',p_doc_id, l_doc_id);
--update tasks
update doclib_tasks
set doc_id = l_doc_id
where doc_id = p_doc_id;
commit;
exception when others then
raise_application_error(-20001,'Exception encountered updating document: '||sqlerrm);
end update_document;
procedure update_doc_attributes (
p_doc_id in varchar2,
p_user_name in varchar2,
p_description in varchar2,
p_attr1 in varchar2,
p_attr2 in varchar2,
p_attr3 in varchar2
is
begin
if get_acl_id(p_user_name) < 2 then
raise_application_error(-20001,'You are not authorized to update document attributes.');
end if;
update doclib_documents
set description = p_description,
attr1 = p_attr1,
attr2 = p_attr2,
attr3 = p_attr3
where doc_id = p_doc_id;
commit;
exception when others then
raise_application_error(-20001,'Exception encountered updating document attributes: '||sqlerrm);
end update_doc_attributes;
procedure checkout (
p_doc_id in varchar2,
p_user_name in varchar2
is
l_chkout_lst varchar2(32000);
begin
if get_acl_id(p_user_name) < 2 then
--raise_application_error(-20001,'You are not authorized to checkout documents.');
return_xml(p_doc_id,'CHECKOUT','You are not authorized to lock documents.',null,'FAILED',p_user_name);
return;
end if;
--This can be the optimistic locking scheme
if doc_is_checkedout_by(p_doc_id) is not null then
--raise_application_error(-20001,'This document is already checked out.');
return_xml(p_doc_id,'CHECKOUT','This document is already locked.',null,'FAILED',p_user_name);
return;
end if;
update doclib_documents
set checkedout_by = p_user_name
where doc_id = p_doc_id;
commit;
l_chkout_lst := get_checkout_list(p_user_name);
return_xml(p_doc_id,'CHECKOUT','Document successfully locked.',l_chkout_lst,'SUCCESS',p_user_name);
exception when others then
--raise_application_error(-20001,'Expection encountered checking out document: '||sqlerrm);
return_xml(p_doc_id,'CHECKOUT','Expection encountered checking out document: '||sqlerrm,null,'FAILED',p_user_name);
end checkout;
procedure checkin (
p_doc_id in varchar2,
p_user_name in varchar2
is
begin
if doc_is_checkedout_by(p_doc_id) is null then
raise_application_error(-20001,'This document is not locked.');
end if;
update doclib_documents
set checkedout_by = null
where doc_id = p_doc_id;
commit;
exception when others then
raise_application_error(-20001,'Exception encountered checking in document: '||sqlerrm);
end checkin;
procedure uncheckout (
p_doc_id in varchar2,
p_user_name in varchar2
is
l_checkedout_by varchar2(255);
l_chkout_lst varchar2(32000);
begin
l_checkedout_by := doc_is_checkedout_by(p_doc_id);
if l_checkedout_by is null then
--raise_application_error(-20001,'This document is not checked out.');
return_xml(p_doc_id,'UNCHECKOUT','This document is not locked.',null,'FAILED',p_user_name);
return;
end if;
--This can be optimistic locking scheme
if upper(l_checkedout_by) != upper(p_user_name) and get_acl_id(p_user_name) < 3 then
--raise_application_error(-20001,'You are not authorized to uncheckout this document.');
return_xml(p_doc_id,'UNCHECKOUT','You are not authorized to unlock this document.',null,'FAILED',p_user_name);
return;
end if;
update doclib_documents
set checkedout_by = null
where doc_id = p_doc_id;
commit;
l_chkout_lst := get_checkout_list(p_user_name);
return_xml(p_doc_id,'UNCHECKOUT','Unlock was successfull',l_chkout_lst,'SUCCESS',p_user_name);
exception when others then
--raise_application_error(-20001,'Exception encountered unchecking out document: '||sqlerrm);
return_xml(p_doc_id,'UNCHECKOUT','Exception encountered unlocking document: '||sqlerrm,null,'FAILED',p_user_name);
end uncheckout;
procedure update_member (
p_user_name in varchar2,
p_member_id in varchar2,
p_email in varchar2,
p_acl_id in varchar2,
p_retrieved in varchar2
is
l_retrieved date;
begin
l_retrieved := to_date(p_retrieved,'DD-MM-YYYY HH24:MI:SS');
if get_acl_id(p_user_name) < 3 then
raise_application_error(-20001,'You are not authorized to update members.');
end if;
--optimistic locking
for c1 in (select null
from doclib_members
where user_id = p_member_id
and updated_on > l_retrieved ) loop
raise_application_error(-20001,'The member has been updated since you retrieved the data. Refresh and try again.');
end loop;
update doclib_members
set email_address = p_email,
role_id = p_acl_id
where user_id = p_member_id;
commit;
exception when others then
raise_application_error(-20001,'Exception encountered updating member: '||sqlerrm);
end update_member;
procedure update_member_email (
p_user_name in varchar2,
p_email in varchar2,
p_retrieved in varchar2
is
l_user_id number;
l_retrieved date;
begin
l_user_id := get_member_id(p_user_name);
l_retrieved := to_date(p_retrieved,'DD-MM-YYYY HH24:MI:SS');
--optimistic locking
for c1 in (select null
from doclib_members
where user_id = l_user_id
and updated_on > l_retrieved ) loop
raise_application_error(-20001,'Remarkably, your email address changed since you retrieved the data. Refresh and try again.');
end loop;
update doclib_members
set email_address = p_email
where user_id = l_user_id;
commit;
exception when others then
raise_application_error(-20001,'Exception encountered updating email: '||sqlerrm);
end update_member_email;
procedure update_task (
p_task_id in varchar2,
p_title in varchar2,
p_user_name in varchar2,
p_assigned in varchar2,
p_priority in varchar2,
p_status in varchar2,
p_pct_complete in varchar2,
p_description in varchar2,
p_start_date in varchar2,
p_due_date in varchar2,
p_doc_id in varchar2,
p_retrieved in varchar2
is
l_start_date date;
l_due_date date;
l_retrieved date;
begin
if get_acl_id(p_user_name) < 2 then
raise_application_error(-20001,'You are not authorized to update tasks.');
end if;
l_retrieved := to_date(p_retrieved,'DD-MM-YYYY HH24:MI:SS');
l_start_date := to_date(p_start_date,'DD-MM-YYYY HH24:MI');
l_due_date := to_date(p_due_date, 'DD-MM-YYYY HH24:MI');
--optimistic locking
for c1 in (select null
from doclib_tasks
where task_id = p_task_id
and updated_on > l_retrieved ) loop
raise_application_error(-20001,'This task has been updated since you retrieved the data. Refresh and try again.');
end loop;
update doclib_tasks
set assigned_to = p_assigned,
priority_id = p_priority,
status_id = p_status,
pct_complete = p_pct_complete,
name = p_title,
description = p_description,
start_date = l_start_date,
due_date = l_due_date,
doc_id = p_doc_id
where task_id = p_task_id;
do_alerts('T',p_task_id,null);
commit;
exception when others then
raise_application_error(-20001,'Exception encountered updating task: '||sqlerrm);
end update_task;
procedure update_link (
p_link_id in varchar2,
p_user_name in varchar2,
p_name in varchar2,
p_url in varchar2,
p_retrieved in varchar2
is
l_retrieved date;
begin
if get_acl_id(p_user_name) < 2 then
raise_application_error(-20001,'You are not authorized to update links.');
end if;
l_retrieved := to_date(p_retrieved,'DD-MM-YYYY HH24:MI:SS');
--optimistic locking
for c1 in (select null
from doclib_links
where link_id = p_link_id
and updated_on > l_retrieved ) loop
raise_application_error(-20001,'This link has been updated since you retrieved the data. Refresh and try again.');
end loop;
update doclib_links
set name = p_name,
url = p_url
where link_id = p_link_id;
commit;
exception when others then
raise_application_error(-20001,'Exception encountered updating link: '||sqlerrm);
end update_link;
procedure update_announcement (
p_an_id in varchar2,
p_user_name in varchar2,
p_title in varchar2,
p_description in varchar2,
p_expire_date in varchar2,
p_retrieved in varchar2
is
l_expire_date date;
l_retrieved date;
begin
if get_acl_id(p_user_name) < 2 then
raise_application_error(-20001,'You are not authorized to update announcements.');
end if;
l_retrieved := to_date(p_retrieved,'DD-MM-YYYY HH24:MI:SS');
l_expire_date := to_date(p_expire_date,'DD-MM-YYYY HH24:MI');
--optimistic locking
for c1 in (select null
from doclib_announcements
where an_id = p_an_id
and updated_on > l_retrieved ) loop
raise_application_error(-20001,'This task has been updated since you retrieved the data. Refresh and try again.');
end loop;
update doclib_announcements
set title = p_title,
description = p_description,
expire_date = l_expire_date
where an_id = p_an_id;
commit;
exception when others then
raise_application_error(-20001,'Exception encountered updating announcement: '||sqlerrm);
end update_announcement;
procedure delete_document (
p_doc_id in varchar2,
p_user_name in varchar2,
p_delete_all in varchar2 default null
is
l_date date := sysdate;
l_checkedout_by varchar2(255);
l_chkout_lst varchar2(32000);
begin
if get_acl_id(p_user_name) < 2 then
--raise_application_error(-20001,'You are not authorized to delete documents.');
return_xml(p_doc_id,'DELETE','You are not authorized to delete documents.',null,'FAILED',p_user_name);
return;
end if;
l_checkedout_by := doc_is_checkedout_by(p_doc_id);
if l_checkedout_by is not null and upper(l_checkedout_by) != upper(p_user_name) then
--raise_application_error(-20001,'This document is currently checked out by '||l_checkedout_by);
return_xml(p_doc_id,'DELETE','This document is currently locked by '||l_checkedout_by,null,'FAILED',p_user_name);
return;
end if;
if p_delete_all = 'Y' then
update doclib_documents
set deleted_as_of = l_date
where doc_id = p_doc_id
or revision_of = p_doc_id;
else
update doclib_documents
set deleted_as_of = l_date
where doc_id = p_doc_id;
end if;
commit;
l_chkout_lst := get_checkout_list(p_user_name);
return_xml(p_doc_id,'DELETE','Document successfully deleted.',l_chkout_lst,'SUCCESS',p_user_name);
exception when others then
--raise_application_error(-20001,'Exception encountered deleting document: '||sqlerrm);
return_xml(p_doc_id,'DELETE','Exception encountered deleting document: '||sqlerrm,null,'FAILED',p_user_name);
end delete_document;
procedure really_delete_document (
p_user_name in varchar2,
p_doc_id in varchar2
is
begin
if get_acl_id(p_user_name) < 3 then
raise_application_error(-20001,'You are not authorized to really delete documents.');
end if;
delete
from doclib_documents
where doc_id = p_doc_id;
commit;
exception when others then
raise_application_error(-20001,'Exception encountered deleting document: '||sqlerrm);
end really_delete_document;
procedure delete_member (
p_user_name in varchar2,
p_user_id in varchar2
is
begin
if get_acl_id(p_user_name) < 3 then
raise_application_error(-20001,'You are not authorized to delete members.');
end if;
delete
from doclib_members
where user_id = p_user_id;
commit;
exception when others then
raise_application_error(-20001,'Exception encountered deleting member: '||sqlerrm);
end delete_member;
procedure delete_task (
p_user_name in varchar2,
p_task_id in varchar2
is
begin
if get_acl_id(p_user_name) < 2 then
raise_application_error(-20001,'You are not authorized to delete tasks.');
end if;
delete
from doclib_tasks
where task_id = p_task_id;
commit;
exception when others then
raise_application_error(-20001,'Exception encountered deleting task: '||sqlerrm);
end delete_task;
procedure delete_announcement (
p_user_name in varchar2,
p_an_id in varchar2
is
begin
if get_acl_id(p_user_name) < 2 then
raise_application_error(-20001,'You are not authorized to delete announcements.');
end if;
delete
from doclib_announcements
where an_id = p_an_id;
commit;
exception when others then
raise_application_error(-20001,'Exception encountered deleting announcement: '||sqlerrm);
end delete_announcement;
procedure delete_link (
p_user_name in varchar2,
p_link_id in varchar2
is
begin
if get_acl_id(p_user_name) < 2 then
raise_application_error(-20001,'You are not authorized to delete links.');
end if;
delete
from doclib_links
where link_id = p_link_id;
commit;
exception when others then
raise_application_error(-20001,'Exception encountered deleting link: '||sqlerrm);
end delete_link;
procedure make_doc_current (
p_user_name in varchar2,
p_name in varchar2,
p_doc_id in varchar2
is
l_name varchar2(255);
l_checkedout_by varchar2(255);
l_curr_doc_id number;
begin
if get_acl_id(p_user_name) < 2 then
raise_application_error(-20001,'You are not authorized to make this document current.');
end if;
l_checkedout_by := doc_is_checkedout_by(p_doc_id);
if l_checkedout_by is not null and upper(l_checkedout_by) != upper(p_user_name) then
raise_application_error(-20001,'This document is currently locked by '||l_checkedout_by);
end if;
for c1 in (select doc_id
from doclib_documents
where deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
and revision_of = 0
and name = p_name ) loop
l_curr_doc_id := c1.doc_id;
exit; -- this should only get one row, but just in case
end loop;
l_checkedout_by := doc_is_checkedout_by(l_curr_doc_id);
if l_checkedout_by is not null and upper(l_checkedout_by) != upper(p_user_name) then
raise_application_error(-20001,'This document is currently locked by '||l_checkedout_by);
end if;
update doclib_documents
set revision_of = p_doc_id,
checkedout_by = null --Revisions can't be locked
where name = p_name
and doc_id != p_doc_id;
update doclib_documents
set revision_of = 0,
checkedout_by = l_checkedout_by --In case original document was locked by p_user_name
where doc_id = p_doc_id;
--do alerts
do_alerts('D',l_curr_doc_id, p_doc_id);
commit;
exception when others then
raise_application_error(-20001,'Exception encountered making document current: '||sqlerrm);
end make_doc_current;
procedure undelete_document (
p_user_name in varchar2,
p_doc_id in varchar2
is
begin
if get_acl_id(p_user_name) < 3 then
raise_application_error(-20001,'You are not authorized to undelete a document.');
end if;
update doclib_documents
set deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
where doc_id = p_doc_id;
commit;
exception when others then
raise_application_error(-20001,'Exception encountered undeleting document: '||sqlerrm);
end undelete_document;
procedure send_invitation (
p_user_name in varchar2,
p_url in varchar2,
p_email in varchar2,
p_acl_id in varchar2,
p_subject in varchar2,
p_body in varchar2
is
l_body clob;
l_role_name varchar2(30);
l_from varchar2(255);
begin
for c1 in (select name
from doclib_roles
where role_id = p_acl_id ) loop
l_role_name := c1.name;
end loop;
for c1 in (select email_address
from doclib_members
where user_name = p_user_name ) loop
l_from := c1.email_address;
end loop;
l_body := g_html_email_header||chr(13)||'<p />'||p_body||chr(13);
l_body := l_body ||chr(13)||'<p />'||p_user_name||' has granted you access to '||p_url||'.';
l_body := l_body ||chr(13)||' Click the link to view the site. You have been granted access to the workspace with ';
l_body := l_body ||chr(13)||'the role of: '||l_role_name||'.'||g_html_email_footer;
apex_mail.send(
p_to => p_email,
p_from => l_from,
p_body => to_clob(' '),
p_body_html => l_body,
p_subj => p_subject );
end send_invitation;
procedure delete_document_multi (
p_doc_ids in varchar2,
p_user_name in varchar2
is
l_date date := sysdate;
l_checkedout_by varchar2(255);
l_chkout_lst varchar2(32000);
l_vc_arr2 apex_application_global.vc_arr2;
l_doc_id number;
l_curr_doc_id number;
begin
if get_acl_id(p_user_name) < 2 then
--raise_application_error(-20001,'You are not authorized to delete documents.');
return_xml(p_doc_ids,'DELETE_MULTI','You are not authorized to delete documents.',null,'FAILED',p_user_name);
return;
end if;
l_vc_arr2 := apex_util.string_to_table(p_doc_ids,',');
for c1 in (select revision_of
from doclib_documents
where doc_id = l_vc_arr2(1) ) loop
l_curr_doc_id := c1.revision_of;
end loop;
for z in 1..l_vc_arr2.count loop
l_checkedout_by := doc_is_checkedout_by(l_vc_arr2(z));
if l_checkedout_by is not null and upper(l_checkedout_by) != upper(p_user_name) then
--raise_application_error(-20001,'This document is currently checked out by '||l_checkedout_by);
return_xml(l_vc_arr2(z),'DELETE_MULTI','This document is currently locked by '||l_checkedout_by,null,'FAILED',p_user_name);
return;
end if;
update doclib_documents
set deleted_as_of = l_date
where doc_id = l_vc_arr2(z);
end loop;
commit;
l_chkout_lst := get_checkout_list(p_user_name);
return_xml(l_curr_doc_id,'DELETE_MULTI','Documents successfully deleted',l_chkout_lst,'SUCCESS',p_user_name);
exception when others then
--raise_application_error(-20001,'Exception encountered deleting document: '||sqlerrm);
return_xml(p_doc_ids,'DELETE_MULTI','Exception encountered deleting documents '||sqlerrm,null,'FAILED',p_user_name);
end delete_document_multi;
procedure rollback_document (
p_doc_id in varchar2,
p_user_name in varchar2
is
l_date date := sysdate;
l_checkedout_by varchar2(255);
l_chkout_lst varchar2(32000);
begin
if get_acl_id(p_user_name) < 2 then
return_xml(p_doc_id,'ROLLBACK','You are not authorized to rollback documents.',null,'FAILED',p_user_name);
return;
end if;
l_checkedout_by := doc_is_checkedout_by(p_doc_id);
--can be used as optimistic locking
if l_checkedout_by is not null and upper(l_checkedout_by) != upper(p_user_name) then
return_xml(p_doc_id,'ROLLBACK','This document is currently locked by '||l_checkedout_by,null,'FAILED',p_user_name);
return;
end if;
update doclib_documents
set deleted_as_of = l_date
where doc_id = p_doc_id;
for c1 in (select doc_id, name
from doclib_documents
where deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
and revision_of = p_doc_id
and version_no = (select max(version_no)
from doclib_documents
where deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
and revision_of = p_doc_id) ) loop
doclib.make_doc_current(
p_user_name => p_user_name,
p_name => c1.name,
p_doc_id => c1.doc_id );
apex_util.set_session_state('DOC_ID',c1.doc_id);
end loop;
commit;
l_chkout_lst := get_checkout_list(p_user_name);
return_xml(p_doc_id,'ROLLBACK','Document successfully rolled back',l_chkout_lst,'SUCCESS',p_user_name);
exception when others then
return_xml(p_doc_id,'ROLLBACK','Exception encountered rolling back document: '||sqlerrm,null,'FAILED',p_user_name);
end rollback_document;
/* Begin CBackstrom procedures and functions */
PROCEDURE return_all_docs(p_doc_type IN VARCHAR2) IS
l_checkedout_by VARCHAR2(4000);
l_attr1 VARCHAR2(4000);
l_attr2 VARCHAR2(4000);
l_attr3 VARCHAR2(4000);
BEGIN
l_checkedout_by := v('P9_MEMBERS');
l_attr1 := v('P9_ATTR1');
l_attr2 := v('P9_ATTR2');
l_attr3 := v('P9_ATTR3');
IF(p_doc_type = 'XML') THEN
owa_util.mime_header('text/xml', FALSE);
htp.p('Cache-Control: no-cache');
htp.p('Pragma: no-cache');
owa_util.http_header_close;
END IF;
htp.p('<div id="filelist">');
--htp.p('<div style="width:150px;"></div>');
IF v('P9_DESC') IS NOT NULL THEN
FOR c1 IN
(SELECT score(1) sc,
name,
doc_id,
checkedout_by,
'<img src="' || decode(mime_type, 'application/vnd.oasis.opendocument.text', '' || v('APP_IMAGES') || 'icodt.GIF', 'application/vnd.ms-excel', '' || v('APP_IMAGES') || 'ICXLS.GIF', 'application/msword', '' || v('APP_IMAGES') || 'ICDOC.GIF', 'application/pdf', '' || v('APP_IMAGES') || 'icpdf.GIF', 'application/vnd.ms-powerpoint', '' || v('APP_IMAGES') || 'ICPPT.GIF', 'application/vnd.oasis.opendocument.spreadsheet', '' || v('APP_IMAGES') || 'iccalc.GIF', 'application/vnd.oasis.opendocument.presentation', '' || v('APP_IMAGES') || 'icodp.GIF', 'text/plain', '' || v('APP_IMAGES') || 'ICTXT.GIF', 'application/x-zip-compressed', '' || v('APP_IMAGES') || 'ICZIP.GIF', '' || v('APP_IMAGES') || 'ICGEN.GIF') || '" width="16" height="16" border="0" />' img
FROM doclib_documents
WHERE deleted_as_of = to_date('22-04-2004', 'DD-MM-YYYY')
AND revision_of = 0
AND(checkedout_by = l_checkedout_by OR l_checkedout_by = '0')
AND(attr1 = l_attr1 OR l_attr1 = '0')
AND(attr2 = l_attr2 OR l_attr2 = '0')
AND(attr3 = l_attr3 OR l_attr3 = '0')
AND contains(contents, doclib.parse_search_string(v('P9_DESC')), 1) > 0
ORDER BY sc DESC)
LOOP
IF c1.checkedout_by IS NULL THEN
htp.p('<a href="javascript:void(0) onclick="GetDoc(this,''' || c1.doc_id || ''')" id="' || c1.doc_id || '">' || c1.img || '  (' || c1.sc || ') '|| c1.name || '</a>');
ELSIF c1.checkedout_by = apex_application.g_user THEN
htp.p('<a href="javascript:void(0) onclick="GetDoc(this,''' || c1.doc_id || ''')" id="' || c1.doc_id || '" class="checkedoutme">' || c1.img || '  (' || c1.sc || ') ' || c1.name || '(' || c1.sc || ')</a>');
ELSE
htp.p('<a href="javascript:void(0) onclick="GetDoc(this,''' || c1.doc_id || ''')" id="' || c1.doc_id || '" class="checkedout">' || c1.img || '  (' || c1.sc || ') '|| c1.name || '(' || c1.sc || ')</a>');
END IF;
END LOOP;
ELSE
FOR c1 IN
(SELECT name,
doc_id,
checkedout_by,
'<img src="' ||decode(mime_type,'application/vnd.oasis.opendocument.text', ''|| v('APP_IMAGES')||
'icodt.GIF','application/vnd.ms-excel',''||v('APP_IMAGES')||'ICXLS.GIF','application/msword',''||
v('APP_IMAGES')||'ICDOC.GIF','application/pdf',''||v('APP_IMAGES')||'icpdf.GIF','application/vnd.ms-powerpoint',''||
v('APP_IMAGES')||'ICPPT.GIF','application/vnd.oasis.opendocument.spreadsheet',''||v('APP_IMAGES')||
'iccalc.GIF','application/vnd.oasis.opendocument.presentation',''||v('APP_IMAGES')||'icodp.GIF','text/plain',''||
v('APP_IMAGES')||'ICTXT.GIF','application/x-zip-compressed',''||v('APP_IMAGES')||'ICZIP.GIF',''||v('APP_IMAGES')||
'ICGEN.GIF')||'" width="16" height="16" border="0" />' img
FROM doclib_documents
WHERE deleted_as_of = to_date('22-04-2004', 'DD-MM-YYYY')
AND revision_of = 0
AND(checkedout_by = l_checkedout_by OR l_checkedout_by = '0')
AND(attr1 = l_attr1 OR l_attr1 = '0')
AND(attr2 = l_attr2 OR l_attr2 = '0')
AND(attr3 = l_attr3 OR l_attr3 = '0')
order by name, updated_on desc)
LOOP
IF c1.checkedout_by IS NULL THEN
htp.p('<a href="javascript:void(0) onclick="GetDoc(this,''' || c1.doc_id || ''')" id="' || c1.doc_id || '">' || c1.img || '  ' || c1.name || '</a>');
ELSIF c1.checkedout_by = apex_application.g_user THEN
htp.p('<a href="javascript:void(0) onclick="GetDoc(this,''' || c1.doc_id || ''')" id="' || c1.doc_id || '" class="checkedoutme">' || c1.img || '  ' || c1.name || '</a>');
ELSE
htp.p('<a href="javascript:void(0) onclick="GetDoc(this,''' || c1.doc_id || ''')" id="' || c1.doc_id || '" class="checkedout">' || c1.img || '  ' || c1.name || '</a>');
END if;
END LOOP;
END IF;
htp.p('</div>');
END;
PROCEDURE doc_versions(p_doc_id IN VARCHAR2) IS
l_checkedout_by VARCHAR2(4000);
l_doc_name VARCHAR2(4000);
BEGIN
htp.p('<table id="doc_versions" cellpadding="0" border="0" cellspacing="0">');
htp.p('<tr>');
htp.p('<th><input type="checkbox" onclick="html_CheckAll(''doc_versions'',this.checked)" /></th>');
htp.p('<th>Version</th>');
htp.p('<th>Created</th>');
htp.p('<th>Created By</th>');
htp.p('</tr>');
FOR c2 IN
(SELECT doc_id,
decode(revision_of,0,' ',apex_item.checkbox(1,doc_id)) a,
name,
version_no,
created_on,
created_by
FROM doclib_documents
WHERE deleted_as_of = to_date('22-04-2004', 'DD-MM-YYYY')
AND(doc_id = p_doc_id OR revision_of = p_doc_id)
ORDER BY version_no DESC)
LOOP
htp.p('<tr>');
htp.p('<td>' || c2.a || '</td>');
htp.p('<td><a id="filehref" href="apex_util.count_click?p_url=' || v('OWNER') || '.get_doc?p=' || c2.doc_id || '&p_cat=DOCS&p_id=' || c2.doc_id || '&p_user=' || v('APP_USER') || '&p_workspace=' || apex_custom_auth.get_security_group_id || '">' || c2.version_no || '</a></td>');
htp.p('<td>' || to_char(c2.created_on, 'MM/DD/YYYY HH:MI AM') || '</td>');
htp.p('<td>' || c2.created_by || '</td>');
htp.p('</tr>');
END LOOP;
htp.p('</table>');
END;
FUNCTION doc_is_updated_by(p_doc_id IN VARCHAR2) RETURN VARCHAR2 IS
BEGIN
FOR c1 IN
(SELECT updated_by
FROM doclib_documents
WHERE doc_id = p_doc_id)
LOOP
RETURN c1.updated_by;
END LOOP;
RETURN NULL;
END doc_is_updated_by;
FUNCTION doc_updated_date(p_doc_id IN VARCHAR2) RETURN VARCHAR2 IS
BEGIN
FOR c1 IN
(SELECT to_char(updated_on, 'MM/DD/YYYY HH:MI AM') updated_on
FROM doclib_documents
WHERE doc_id = p_doc_id)
LOOP
RETURN c1.updated_on;
END LOOP;
RETURN NULL;
END doc_updated_date;
FUNCTION doc_created_date(p_doc_id IN VARCHAR2) RETURN VARCHAR2 IS
BEGIN
FOR c1 IN
(SELECT to_char(created_on, 'MM/DD/YYYY HH:MI AM') created
FROM doclib_documents
WHERE doc_id = p_doc_id)
LOOP
RETURN c1.created;
END LOOP;
RETURN NULL;
END doc_created_date;
FUNCTION doc_linked_image(p_doc_id IN VARCHAR2) RETURN VARCHAR2 IS l_image_link VARCHAR2(4000);
l_image_prefix VARCHAR2(4000);
BEGIN
l_image_link := '<a id="filehref" href="apex_util.count_click?p_url=' || v('OWNER') || '.get_doc?p=' || p_doc_id || '&p_cat=DOCS&p_id=' || p_doc_id || '&p_user=' || v('APP_USER') || '&p_workspace=' || apex_custom_auth.get_security_group_id || '">';
l_image_prefix := v('APP_IMAGES');
FOR c1 IN
(SELECT mime_type,
l_image_link || '<img src="' || decode(mime_type, 'application/vnd.oasis.opendocument.text', l_image_prefix || 'icodt.GIF', 'application/vnd.ms-excel', l_image_prefix || 'ICXLS.GIF', 'application/msword', l_image_prefix || 'ICDOC.GIF', 'application/pdf', l_image_prefix || 'icpdf.GIF', 'application/vnd.ms-powerpoint', l_image_prefix || 'ICPPT.GIF', 'application/vnd.oasis.opendocument.spreadsheet', l_image_prefix || 'iccalc.GIF', 'application/vnd.oasis.opendocument.presentation', l_image_prefix || 'icodp.GIF', 'text/plain', l_image_prefix || 'ICTXT.GIF', 'application/x-zip-compressed', l_image_prefix || 'ICZIP.GIF', l_image_prefix || 'ICGEN.GIF') || '" width="16" height="16" border="0" /></a>' image
FROM doclib_documents
WHERE doc_id = p_doc_id)
LOOP
RETURN c1.image;
END LOOP;
RETURN NULL;
END doc_linked_image;
FUNCTION doc_file_type(p_doc_id IN VARCHAR2) RETURN VARCHAR2 IS l_file_type VARCHAR2(4000);
BEGIN
FOR c1 IN
(SELECT mime_type
FROM doclib_documents
WHERE doc_id = p_doc_id)
LOOP
RETURN c1.mime_type;
END LOOP;
RETURN NULL;
END doc_file_type;
PROCEDURE doc_attribute_tab(p_doc_id IN VARCHAR2, p_user_name IN VARCHAR2) IS
BEGIN
for c1 in (select attr1, attr2, attr3, description
from doclib_documents
where doc_id = p_doc_id ) loop
htp.p('<table id="doc_attribute" cellpadding="0" cellspacing="0" border="0">');
htp.p('<tr><th>'||v('DOC_WORKSPACE_LBL1')||'</th><td>'||APEX_ITEM.SELECT_LIST_FROM_LOV(1,c1.attr1,'ATTR1',null,'NO',null,null,'ATTR1')||'</td></tr>');
htp.p('<tr><th>'||v('DOC_WORKSPACE_LBL2')||'</th><td>'||APEX_ITEM.SELECT_LIST_FROM_LOV(2,c1.attr2,'ATTR2',null,'NO',null,null,'ATTR2')||'</td></tr>');
htp.p('<tr><th>'||v('DOC_WORKSPACE_LBL3')||'</th><td>'||APEX_ITEM.SELECT_LIST_FROM_LOV(3,c1.attr3,'ATTR3',null,'NO',null,null,'ATTR3')||'</td></tr>');
htp.p('<tr><td colspan="2"><b>Description</b>
<textarea id="desc">' || c1.description || '</textarea></td></tr>');
htp.p('<tr><td colspan="2"><input type="button" onclick="doc_attribute_update()" value="Update Attributes" /></td></tr>');
htp.p('</table>');
end loop;
END;
PROCEDURE doc_detail(p_doc_id IN VARCHAR2, p_user_name IN VARCHAR2) IS
l_checkedout_by VARCHAR2(4000);
l_updated_by VARCHAR2(4000);
l_created_date VARCHAR2(4000);
l_updated_date VARCHAR2(4000);
l_mime_type VARCHAR2(4000);
l_doc_name VARCHAR2(4000);
l_acl_id VARCHAR2(4000);
BEGIN
l_checkedout_by := doclib.doc_is_checkedout_by(p_doc_id);
l_doc_name := doclib.get_doc_name(p_doc_id);
l_acl_id := doclib.get_acl_id(p_user_name);
l_updated_by := doc_is_updated_by(p_doc_id);
l_mime_type := doc_file_type(p_doc_id);
l_updated_date := doc_updated_date(p_doc_id);
l_created_date := doc_created_date(p_doc_id);
apex_util.set_session_state('DOC_ID', p_doc_id);
apex_util.set_session_state('DOC_NAME', l_doc_name);
htp.p('<div id="doc_detail">');
htp.p('<div id="doc_header">');
htp.p('<div id="doc_name"><a href="apex_util.count_click?p_url=' || v('OWNER') || '.get_doc?p=' || p_doc_id || '&p_cat=DOCS&p_id=' || p_doc_id || '&p_user=' || v('APP_USER') || '&p_workspace=' || apex_custom_auth.get_security_group_id || ">' || l_doc_name || '</a></div>');
htp.p('<table><tr><td valign="top">');
htp.p('<table>');
htp.p('<tr><th>View :</th><td>' || doc_linked_image(p_doc_id) || '</td></tr>');
htp.p('<tr><th>Locked By :</th><td id="checkedoutby">' || l_checkedout_by || '</td></tr>');
htp.p('<tr><th>Modified By :</th><td id="modifiedby">' || l_updated_by || '</td></tr>');
htp.p('</table>');
htp.p('</td><td width="100">
<td><td valign="top">');
htp.p('<table>');
htp.p('<tr><th>Updated Date :</th><td id="updateddate">' || l_updated_date || '</td></tr>');
htp.p('<tr><th>Created Date :</th><td id="createddate">' || l_created_date || '</td></tr>');
htp.p('<tr><th>Send Link :</th><td id="sendlink"><a href="mailto:' || doclib.get_member_email(p_user_name) || '?subject=' || l_doc_name || '&body=' || v('BASE_URL') || '/f?p=' || v('APP_ID') || ':2:::::P2_DOC_ID:' || p_doc_id || ">Click Here</a></td></tr>');
htp.p('</table>');
htp.p('</td></tr></table>');
htp.p('</div>');
htp.p('<div id="doc_actions">Actions : ');
IF l_acl_id > 1 THEN
IF l_checkedout_by IS NULL THEN
htp.p('<a href="javascript:doc_Action(this,''' || p_doc_id || ''',''CHECKOUT'') id="checkout_button">Lock</a>');
ELSIF l_checkedout_by = p_user_name OR l_acl_id > 2 THEN
htp.p('<a href="javascript:doc_Action(this,''' || p_doc_id || ''',''UNCHECKOUT'') id="checkout_button">Unlock</a>');
END IF;
IF l_checkedout_by IS NULL OR l_checkedout_by = p_user_name THEN
htp.p('Add Version');
htp.p('Delete');
END IF;
-- htp.p('<a href="f?p=&APP_ID.:5:&SESSION.::::P5_NAME,P5_DOC_ID:' || l_doc_name || ',' || p_doc_id || ' id="versions_button">Versions</a>');
END IF;
htp.p('<a href="apex_util.count_click?p_url=' || v('OWNER') || '.get_doc?p=' || p_doc_id || '&p_cat=DOCS&p_id=' || p_doc_id || '&p_user=' || p_user_name || '&p_workspace=' || apex_custom_auth.get_security_group_id || ">View</a>');
htp.p('<a href="f?p=' || v('APP_ID') || ':95:' || v('SESSION') || '::::P95_ALERT_TYPE,P95_ALERT_INTERVAL,P95_DOC_ID:D,,' || v('DOC_ID') || ">Alert Me</a>');
htp.p('</div>');
htp.p('<div id="action_message"></div>');
htp.p('<div id="doc_tabs">');
htp.p('<div id="doc_tabsbuttons">Versions<a id="tab3" href="javascript:void(0)" onclick="doc_Comments_Tab(''tab3'')">Comments</a>');
if doclib.GET_ACL_ID(v('APP_USER')) > 1 then
htp.p('Attributes');
end if;
htp.p('</div>');
htp.p('<div id="doc_tabsbody">');
htp.p('<div id="tab1_content">');
doc_versions(p_doc_id);
IF (l_checkedout_by IS NULL OR l_checkedout_by = p_user_name) and get_acl_id(v('APP_USER')) > 1 THEN
htp.p('<hr /><input type="button" value="Delete All Versions" onclick="doc_Action(this,''' || p_doc_id || ''',''DELETE'')" />');
if doc_has_revisions(p_doc_id) > 0 then
htp.p('<input type="button" value="Delete Checked Versions" onclick="doc_Action(this,''' || p_doc_id || ''',''DELETE_CHECKED'')" />');
htp.p('<input type="button" value="Delete Current Version (Rollback Version)" onclick="doc_Action(this,''' || p_doc_id || ''',''ROLLBACK'')" />');
end if;
END IF;
htp.p('</div>');
htp.p('<div id="tab2_content" style="display:none;">');
doc_attribute_tab(p_doc_id, p_user_name);
htp.p('</div>');
htp.p('<div id="tab3_content" style="display:none;"><div id="doc_comments">
</div></div>');
htp.p('</div>');
htp.p('</div>');
htp.p('</div>');
END;
PROCEDURE doc_comments(p_doc_id IN VARCHAR2) IS
BEGIN
htp.p('<div>');
htp.p('<table id="doc_versions" cellpadding="0" border="0" cellspacing="0">');
htp.p('<tr><th>Member</th><th>Date</th><th>Comment</th></tr>');
FOR c2 IN
(SELECT description,
created_by,
created_on
FROM doclib_documents
WHERE(doc_id = p_doc_id OR revision_of = p_doc_id)
AND(description IS NOT NULL OR description != '')
AND deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
ORDER BY created_on DESC)
LOOP
htp.p('<tr>' || '<td>' || c2.created_by || '</td><td>' || to_char(c2.created_on, 'MM/DD/YYYY HH:MI AM') || '</td><td>' || c2.description || '</td></tr>');
END LOOP;
htp.p('</table>');
htp.p('</div>');
END;
/* End CBackstrom procedures and functions */
end doclib;
Error at line 1230: PL/SQL: SQL Statement ignored
sync_index.sql
declare
l_job_id binary_integer;
begin
for c1 in (select job
from user_jobs
where what = 'ctx_ddl.sync_index(''doclib_docs_idx2'', ''2M'');' ) loop
dbms_job.remove(c1.job);
end loop;
dbms_job.submit(
job => l_job_id,
what => 'ctx_ddl.sync_index(''doclib_docs_idx2'', ''2M'');',
next_date => sysdate + 15/1440,
interval => 'sysdate + 15/1440');
end;
ORA-06550: line 1, column 93:
PLS-00201: identifier 'CTX_DDL.SYNC_INDEX' must be declared
ORA-06550: line 1, column 93:
PL/SQL: Statement ignored
I would appreciate any suggestions.
Thank you for your time.
DanielD

Similar Messages

  • Unable to load Packaged App Document Library 0.91 in Apex 3

    I have downloaded packaged application Document Library 0.91 from packaged applications URL and trying to import it into APEX 3.0.
    In Application Builder I am getting an error message that 'Script has exceeded the maximum limit'. So I tried executing the install script as a application parsing schema, then it returned following error in SQL*Plus:
    SQL> spool doclib_install.log
    SQL> @doc_library_installer_0.91.sql
    APPLICATION 12487 - Document Library 0.9
    Set Credentials...
    Illegal security group id value for this schema.
    Check Compatibility...
    API Last Extended:20070108
    Your Current Version:20070108
    This import is compatible with version: 20060224
    COMPATIBLE (You should be able to run this import without issues.)
    Set Application ID...
    begin
    ERROR at line 1:
    ORA-20001: Package variable g_security_group_id must be set.
    ORA-06512: at "FLOWS_030000.WWV_FLOW_API", line 45
    ORA-06512: at "FLOWS_030000.WWV_FLOW_API", line 237
    ORA-06512: at line 4
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.2 - Production
    With the Partitioning, OLAP and Data Mining options
    Am i missing anything or if anybody got a luck to install this app into Apex 3.0 pls. let me know how to resolve the above error?
    Thanks & regards,
    Preet

    Preet,
    Maybe we need to be more explicit in the readme. You need to "Import and install the doc_library_installer_0.91.sql ... Select to install supporting objects." This is from the Application Builder, select Import. Maybe you uploaded it as a script under the SQL Workshop? Those directions are in the readme for upgrading from the .9 version to the .91 version without losing your data.
    -- Sharon

  • Packaged App - Document Library - New user password?

    How do you set the password for a new user on the Document Library packaged app. The documentation suggests that by default it uses 'Standard application express authentication' which can then be changed. In which case the user admin function in the app does not work in its default state and would need to be removed if the user wants to use 'Standard application express authentication' (or does it?)
    Which leads me to another question:
    Is it possible to manage application express users from an application express app in Apex 3.0?
    Thanks
    Simon

    Simon:
    For a new user, you also need to create them as a normal Application Express authenticated user. To do that, click the Manage Application Express Users link under Administration from the Application Expres home page.
    The only thing the Document Library handles is authorization (who can do what). Authentication (who the heck are you) is determined by the application setting, which by default is standard Application Express authentication. So all you are doing in the Document Library on the user administration page, is defining who is a reader, contributor, or administrator. You are not actually creating users, you are just defining the rights for existing users.
    Regarding your second question, you can use the APEX_UTIL API to handle user management within your application. See:
    http://download-west.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32471/api.htm#CHDBDCIE
    Specifically, CREATE_USER Procedure, EDIT_USER Procedure, CHANGE_CURRENT_USER_PW Procedure, etc.
    Regards,
    Jason

  • Access denied error while uploading the document into document library which is associated with a content type

    hi,
     am trying to upload a document in a document library which is associated  with content types [ the content type contains 10 site columns and one of them is taxonomy field]. i added this content type in the document library.
    this document library is residing in a team site which is saved as a template and  based on this template i have created sub sites.
    and when i tried to upload a file to the doc lib, it throws me "access denied error".
    what may be went wrong .
    any help is  appreciated!

    Access denied indicates the user account uploading the file doesn't have access to the library, or sometimes it means there's already a document in the library with the same name that was never checked in. It's also possible that your template contains
    custom code that tries to do something that is not allowed.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Documents backup failure in commvault with error Cannot open file ReportViewer.dwp

    Hi,
    SharePoint Documents backup failure in commvault with error "Cannot open file ReportViewer.dwp" even all necessary permissions are available for all the sites , sql

    Hi Praveen,
    Whether you tried to backup the library using PowerShell exporting command.
    Export sites, lists, or document libraries in SharePoint 2013:
    http://technet.microsoft.com/en-us/library/ee428301(v=office.15).aspx
    As the commvault is a third party tool and I am not familar with it, I suggest you ask the third party support or forum for help.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to List view web part to display document library for only users with access permission

    Hi
    I am trying to accomplish this requirement but I don't know if that is possible or how to get there.  Any suggestion or advice are helpful.
    On a site collection, I have several document libraries,  with each library have unique permission to a few user or SharePoint group.
    I want to create a web part page and make that the site home page.  On this web part page, I want to create a Content Search Web Part to list the content of the document library that the logged on users have permission to see. 
    Is this possible with CSWP or is there anything easier or if it is not possible at all,  please advise.
    Thanks
    Swanl

    Hi ,
    Based on your description, my understanding is that you want to create a Content Search Web Part to list the documents that the logged on users have access permission.
    It is feasible with CSWP, you can follow the below step:
    Edit Content Search Web Part->Change query-> Select a query: Items matching a content type (System); Restrict by app: Current site collection; Restrict by content type: Document.
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet
    Subscriber Support, contact [email protected]

  • UNABLE TO INSTALL THE PACKAGED APPLICATIONS (DOCUMENT LIBRARY)

    Created new workspace, and downloaded and tried to install Document Library
    from http://www.oracle.com/technology/products/database/application_express/packaged_apps/packaged_apps.html#DOC_LIB .
    Installed application just fine, but when Apex attempted to install the
    supporting objects, it failed. It hangs for a while and then goes to “page cannot be displayed page” When I click on refresh, and I get an error.
    When browse the tables under SQL Workshop, I noticed that none of the objects have been installed for that App.
    When i try to run the application, i get the following error.
    ORA-06550: line 3, column 19: PL/SQL: ORA-00942: table or view does not exist ORA-06550: line 1, column 17: PL/SQL: SQL Statement ignored ORA-06550: line 5, column 26: PLS-00364: loop index variable 'C1' use is invalid ORA-06550: line 5, column 3: PL/SQL: Statement ignored ORA-06550: line 6, column 26: PLS-00364: loop index variable 'C1' use is invalid ORA-06550: line 6, column 3: PL/SQL: Statement ignored ORA-06550: line 7, column 26: PLS-00364: loop index variable 'C1' use is invalid ORA-06550: line 7,
    Error setting workspace attributes.
    Did anyone installed this APP? if so, was it successful?

    Could be possible that Samsung Galaxy Fit Processor doesn't match with the system requirements of AIR. It should be ARMv7
    http://www.adobe.com/products/air/systemreqs/MOBILE SYSTEM REQUIREMENTS
    Android devices
    VGA: Dedicated Cortex A8 (ARMv7) 550MHz App Processor with Neon for A8 only; Hardware Vector FPU
    WVGA: Dedicated Cortex A8 (ARMv7) 800MHz App Processor; Hardware Vector FPU
    Google Android™ 2.2 or later
    -Pahup

  • Download older version of a file from SharePoint Document Library using CSOM and 404 error

    Hi,
    I am trying to download previous versions including Major and Minor versions of documents from SharePoint Online using CSOM. I get 404 error when I try to download the file. I found several posts on various discussion forums where people are getting same
    error but none of those have any solution/answer. Below is one of the threads and sample code I have tried that results in 404 error. If I use the link in browser directly, I am able to download the file. Also I am able to download the current version of file
    using CSOM without any problem, it is only the older versions that give me 404 in CSOM.
    http://qandasys.info/how-to-download-the-historical-file-version-content-using-csom/
    public int GetStreamFromFile(string docid, string lib, string fileurl, ClientContext clientContext, int iuserid, string Version, bool isCurrrent)
    if(!isCurrent)
    List LibraryName = clientContext.Web.Lists.GetByTitle(lib);
    clientContext.Load(LibraryName);
    clientContext.ExecuteQuery();
    CamlQuery camlQuery = new CamlQuery();
    camlQuery.ViewXml = "" + fileurl +
    Microsoft.SharePoint.Client.ListItemCollection collListItem = LibraryName.GetItems(camlQuery);
    clientContext.Load(collListItem, items => items.Include(item => item.Id, item => item["FileLeafRef"], item => item["LinkFilename"],
    item => item["FileRef"], item => item["File_x0020_Size"], item => item["DocIcon"], item => item.File.Versions));
    //clientContext.Load(collListItem);
    clientContext.ExecuteQuery();
    foreach (Microsoft.SharePoint.Client.ListItem oListItem in collListItem)
    //string fileurl1 = (string)oListItem["FileRef"];
    //string filename = (string)oListItem["LinkFilename"];
    foreach (FileVersion version in oListItem.File.Versions)
    if (Version == version.VersionLabel)
    //Added excutequery to get object one more time as per blog
    //http://social.technet.microsoft.com/Forums/de-DE/sharepointdevelopmentprevious/thread/88a05256-8694-4e40-863d-6c77512e079b
    clientContext.ExecuteQuery();
    FileInformation fileInformation = ClientOM.File.OpenBinaryDirect(clientContext,version.Url);
    bytesarr = ReadFully(fileInformation.Stream);
    Darwaish

    Hi,
    According to your description,
    I know you want to get older version of a file from SharePoint Document Library using Client Object Model.
    The following code snippet for your reference:
    public void GetVersions()
    ClientContext clientContext = new ClientContext(“http://SPSite”);
    Web site = clientContext.Web;
    clientContext.Load(site);
    clientContext.ExecuteQuery();
    File file = site.GetFileByServerRelativeUrl(“/Shared Documents/mydocument.doc”);
    clientContext.Load(file);
    clientContext.ExecuteQuery();
    ListItem currentItem = file.ListItemAllFields;
    clientContext.Load(currentItem);
    clientContext.ExecuteQuery();
    FileVersionCollection versions = file.Versions;
    clientContext.Load(versions);
    clientContext.ExecuteQuery();
    if (versions != null)
    foreach(FileVersion _version in versions)
    Console.WriteLine(“Version : {0}”,_version.VersionLabel);
    More information:
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.file.versions.aspx
    Best Regards,
    Dennis Guo

  • [SOLVED] cups installation: package version 1.2.12-1 exits with error

    Hi,
    I installed cups, gutenprint and cups-pdf packages today. But cups does not work when launched as a daemon in /etc/rc.conf. The error it spits out is-
    cupsd: Child exited on signal 15!
    I had libcups installed before installing cups, as dependency for some other package. I have an Epson Stylus C43SX printer, which connects via parallel port. I have configured it successfully before, and it is well supported.
    Anyone else having such an issue with cups ? Any suggestions on how to fix this ?
    Last edited by d2v (2007-07-19 01:45:32)

    Output of 'strace cupsd -f' , when called as root
    [root@Athlon devendra]# strace cupsd -f
    execve("/usr/sbin/cupsd", ["cupsd", "-f"], [/* 47 vars */]) = 0
    brk(0) = 0x809b000
    access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=99005, ...}) = 0
    mmap2(NULL, 99005, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f78000
    close(3) = 0
    open("/lib/libz.so.1", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\26"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0644, st_size=77471, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f77000
    mmap2(NULL, 73548, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f65000
    mmap2(0xb7f76000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10) = 0xb7f76000
    close(3) = 0
    open("/usr/lib/libgnutls.so.13", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 $\1\000"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=490500, ...}) = 0
    mmap2(NULL, 444844, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ef8000
    mmap2(0xb7f5f000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x66) = 0xb7f5f000
    close(3) = 0
    open("/usr/lib/libtasn1.so.3", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\21"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0777, st_size=69823, ...}) = 0
    mmap2(NULL, 58724, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ee9000
    mmap2(0xb7ef7000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) = 0xb7ef7000
    close(3) = 0
    open("/usr/lib/libgcrypt.so.11", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p?\0\000"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=363723, ...}) = 0
    mmap2(NULL, 334568, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e97000
    mmap2(0xb7ee7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4f) = 0xb7ee7000
    mprotect(0xbf9dd000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|PROT_GROWSDOWN) = 0
    close(3) = 0
    open("/usr/lib/libgpg-error.so.0", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\6\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=13878, ...}) = 0
    mmap2(NULL, 14568, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e93000
    mmap2(0xb7e96000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7e96000
    close(3) = 0
    open("/usr/lib/libslp.so.1", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3401\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=66029, ...}) = 0
    mmap2(NULL, 59996, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e84000
    mmap2(0xb7e92000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd) = 0xb7e92000
    close(3) = 0
    open("/lib/libpam.so.0", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\23"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=34413, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e83000
    mmap2(NULL, 31984, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e7b000
    mmap2(0xb7e82000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xb7e82000
    close(3) = 0
    open("/lib/libdl.so.2", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\f\0\000"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=13414, ...}) = 0
    mmap2(NULL, 12412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e77000
    mmap2(0xb7e79000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7e79000
    close(3) = 0
    open("/lib/libacl.so.1", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\23"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0644, st_size=27952, ...}) = 0
    mmap2(NULL, 20980, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e71000
    mmap2(0xb7e76000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5) = 0xb7e76000
    close(3) = 0
    open("/usr/lib/libcups.so.2", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360v\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=212877, ...}) = 0
    mmap2(NULL, 195440, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e41000
    mmap2(0xb7e6f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2d) = 0xb7e6f000
    close(3) = 0
    open("/lib/libpthread.so.0", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320L\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=111203, ...}) = 0
    mmap2(NULL, 90592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e2a000
    mmap2(0xb7e3d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12) = 0xb7e3d000
    mmap2(0xb7e3f000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7e3f000
    close(3) = 0
    open("/lib/libm.so.6", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3403\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=172649, ...}) = 0
    mmap2(NULL, 143488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e06000
    mmap2(0xb7e28000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x21) = 0xb7e28000
    close(3) = 0
    open("/lib/libcrypt.so.1", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\10\0\000"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=25185, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e05000
    mmap2(NULL, 184636, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dd7000
    mmap2(0xb7ddc000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4) = 0xb7ddc000
    mmap2(0xb7dde000, 155964, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7dde000
    close(3) = 0
    open("/lib/libc.so.6", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320Z\1"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=1460471, ...}) = 0
    mmap2(NULL, 1242568, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ca7000
    mmap2(0xb7dd1000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12a) = 0xb7dd1000
    mmap2(0xb7dd4000, 9672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7dd4000
    close(3) = 0
    open("/lib/libnsl.so.1", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0007\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=92814, ...}) = 0
    mmap2(NULL, 88040, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7c91000
    mmap2(0xb7ca3000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11) = 0xb7ca3000
    mmap2(0xb7ca5000, 6120, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ca5000
    close(3) = 0
    open("/lib/libresolv.so.2", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P$\0\000"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=69426, ...}) = 0
    mmap2(NULL, 71880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7c7f000
    mmap2(0xb7c8d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd) = 0xb7c8d000
    mmap2(0xb7c8f000, 6344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7c8f000
    close(3) = 0
    open("/usr/lib/libcrypto.so.0.9.8", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@_\3\000"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0555, st_size=1379929, ...}) = 0
    mmap2(NULL, 1218008, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7b55000
    mmap2(0xb7c67000, 86016, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x111) = 0xb7c67000
    mmap2(0xb7c7c000, 9688, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7c7c000
    close(3) = 0
    open("/lib/libattr.so.1", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\f\0\000"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0644, st_size=15506, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7b54000
    mmap2(NULL, 15656, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7b50000
    mmap2(0xb7b53000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7b53000
    close(3) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7b4f000
    set_thread_area({entry_number:-1 -> 6, base_addr:0xb7b4f9c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
    mprotect(0xb7dd1000, 4096, PROT_READ) = 0
    mprotect(0xb7fac000, 4096, PROT_READ) = 0
    munmap(0xb7f78000, 99005) = 0
    set_tid_address(0xb7b4fa08) = 5625
    set_robust_list(0xb7b4fa10, 0xc) = 0
    rt_sigaction(SIGRTMIN, {0xb7e2e7c0, [], SA_SIGINFO}, NULL, 8) = 0
    rt_sigaction(SIGRT_1, {0xb7e2e840, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
    rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
    getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
    uname({sys="Linux", node="Athlon", ...}) = 0
    brk(0) = 0x809b000
    brk(0x80bc000) = 0x80bc000
    open("/etc/localtime", O_RDONLY) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=265, ...}) = 0
    fstat64(3, {st_mode=S_IFREG|0644, st_size=265, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f90000
    read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0\0"..., 4096) = 265
    close(3) = 0
    munmap(0xb7f90000, 4096) = 0
    open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=347472, ...}) = 0
    mmap2(NULL, 347472, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7afa000
    close(3) = 0
    getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
    setrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
    uname({sys="Linux", node="Athlon", ...}) = 0
    open("/etc/resolv.conf", O_RDONLY) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=230, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f90000
    read(3, "#\n# /etc/resolv.conf\n#\n\n#search "..., 4096) = 230
    read(3, "", 4096) = 0
    close(3) = 0
    munmap(0xb7f90000, 4096) = 0
    uname({sys="Linux", node="Athlon", ...}) = 0
    socket(PF_FILE, SOCK_STREAM, 0) = 3
    fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
    connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
    close(3) = 0
    socket(PF_FILE, SOCK_STREAM, 0) = 3
    fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
    connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
    close(3) = 0
    open("/etc/nsswitch.conf", O_RDONLY) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=238, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f90000
    read(3, "# Begin /etc/nsswitch.conf\n\npass"..., 4096) = 238
    read(3, "", 4096) = 0
    close(3) = 0
    munmap(0xb7f90000, 4096) = 0
    open("/etc/ld.so.cache", O_RDONLY) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=99005, ...}) = 0
    mmap2(NULL, 99005, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f78000
    close(3) = 0
    open("/lib/libnss_files.so.2", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\33"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=41686, ...}) = 0
    mmap2(NULL, 37528, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7af0000
    mmap2(0xb7af8000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7) = 0xb7af8000
    close(3) = 0
    munmap(0xb7f78000, 99005) = 0
    open("/etc/host.conf", O_RDONLY) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=63, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f90000
    read(3, "#\n# /etc/host.conf\n#\n\norder host"..., 4096) = 63
    read(3, "", 4096) = 0
    close(3) = 0
    munmap(0xb7f90000, 4096) = 0
    futex(0xb7dd57e0, FUTEX_WAKE, 2147483647) = 0
    open("/etc/hosts", O_RDONLY) = 3
    fcntl64(3, F_GETFD) = 0
    fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
    fstat64(3, {st_mode=S_IFREG|0644, st_size=145, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f90000
    read(3, "#\n# /etc/hosts: static lookup ta"..., 4096) = 145
    read(3, "", 4096) = 0
    close(3) = 0
    munmap(0xb7f90000, 4096) = 0
    futex(0xb7e70b14, FUTEX_WAKE, 2147483647) = 0
    access("/usr/share/locale/en_US/cups_en_US.po", F_OK) = -1 ENOENT (No such file or directory)
    access("/usr/share/locale/en/cups_en.po", F_OK) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/C/cups_C.po", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    socket(PF_FILE, SOCK_STREAM, 0) = 3
    fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
    connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
    close(3) = 0
    socket(PF_FILE, SOCK_STREAM, 0) = 3
    fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
    connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
    close(3) = 0
    open("/etc/passwd", O_RDONLY) = 3
    fcntl64(3, F_GETFD) = 0
    fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
    fstat64(3, {st_mode=S_IFREG|0644, st_size=513, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f90000
    read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 513
    close(3) = 0
    munmap(0xb7f90000, 4096) = 0
    socket(PF_FILE, SOCK_STREAM, 0) = 3
    fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
    connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
    close(3) = 0
    socket(PF_FILE, SOCK_STREAM, 0) = 3
    fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
    connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
    close(3) = 0
    open("/etc/group", O_RDONLY) = 3
    fcntl64(3, F_GETFD) = 0
    fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
    fstat64(3, {st_mode=S_IFREG|0644, st_size=462, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f90000
    read(3, "root::0:root\nbin::1:root,bin,dae"..., 4096) = 462
    close(3) = 0
    munmap(0xb7f90000, 4096) = 0
    open("/root/.cups/client.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    open("/root/.cupsrc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    open("/etc/cups/client.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    stat64("/var/run/cups/cups.sock", 0xbf9d8964) = -1 ENOENT (No such file or directory)
    socket(PF_FILE, SOCK_STREAM, 0) = 3
    fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
    connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
    close(3) = 0
    socket(PF_FILE, SOCK_STREAM, 0) = 3
    fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
    connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
    close(3) = 0
    open("/etc/ld.so.cache", O_RDONLY) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=99005, ...}) = 0
    mmap2(NULL, 99005, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f78000
    close(3) = 0
    open("/lib/tls/i686/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/lib/tls/i686", 0xbf9d82bc) = -1 ENOENT (No such file or directory)
    open("/lib/tls/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/lib/tls", 0xbf9d82bc) = -1 ENOENT (No such file or directory)
    open("/lib/i686/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/lib/i686", 0xbf9d82bc) = -1 ENOENT (No such file or directory)
    open("/lib/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/lib", {st_mode=S_IFDIR|0755, st_size=3752, ...}) = 0
    open("/usr/lib/tls/i686/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/lib/tls/i686", 0xbf9d82bc) = -1 ENOENT (No such file or directory)
    open("/usr/lib/tls/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/lib/tls", 0xbf9d82bc) = -1 ENOENT (No such file or directory)
    open("/usr/lib/i686/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/lib/i686", 0xbf9d82bc) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=56736, ...}) = 0
    munmap(0xb7f78000, 99005) = 0
    open("/etc/services", O_RDONLY) = 3
    fcntl64(3, F_GETFD) = 0
    fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
    fstat64(3, {st_mode=S_IFREG|0644, st_size=13651, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f90000
    read(3, "#\t$NetBSD: services,v 1.84 2007/"..., 4096) = 4096
    read(3, "89/udp\t\t\t# Lightweight Directory"..., 4096) = 4096
    read(3, "e\npostgresql\t5432/udp\t\t# Postgre"..., 4096) = 4096
    read(3, "2431/udp\t\t# udp sftp side effect"..., 4096) = 1363
    read(3, "", 4096) = 0
    close(3) = 0
    munmap(0xb7f90000, 4096) = 0
    open("/etc/cups/cupsd.conf", O_RDONLY|O_LARGEFILE) = 3
    fcntl64(3, F_GETFD) = 0
    fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
    read(3, "#\n# \"$Id: cupsd.conf,v 1.1 2006/"..., 4096) = 2929
    open("/etc/group", O_RDONLY) = 4
    fcntl64(4, F_GETFD) = 0
    fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
    fstat64(4, {st_mode=S_IFREG|0644, st_size=462, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f90000
    read(4, "root::0:root\nbin::1:root,bin,dae"..., 4096) = 462
    close(4) = 0
    munmap(0xb7f90000, 4096) = 0
    open("/etc/group", O_RDONLY) = 4
    fcntl64(4, F_GETFD) = 0
    fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
    fstat64(4, {st_mode=S_IFREG|0644, st_size=462, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f90000
    read(4, "root::0:root\nbin::1:root,bin,dae"..., 4096) = 462
    close(4) = 0
    munmap(0xb7f90000, 4096) = 0
    socket(PF_NETLINK, SOCK_RAW, 0) = 4
    bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
    getsockname(4, {sa_family=AF_NETLINK, pid=5625, groups=00000000}, [12]) = 0
    time(NULL) = 1184731631
    sendto(4, "\24\0\0\0\26\0\1\3\357\221\235F\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
    recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0\357\221\235F\371\25\0\0\2\10\200\376\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108
    recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0\357\221\235F\371\25\0\0\n\200\200\376"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 128
    recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\357\221\235F\371\25\0\0\0\0\0\0\1\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
    close(4) = 0
    open("/etc/hosts", O_RDONLY) = 4
    fcntl64(4, F_GETFD) = 0
    fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
    fstat64(4, {st_mode=S_IFREG|0644, st_size=145, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f90000
    read(4, "#\n# /etc/hosts: static lookup ta"..., 4096) = 145
    read(4, "", 4096) = 0
    close(4) = 0
    munmap(0xb7f90000, 4096) = 0
    open("/etc/hosts", O_RDONLY) = 4
    fcntl64(4, F_GETFD) = 0
    fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
    fstat64(4, {st_mode=S_IFREG|0644, st_size=145, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f90000
    read(4, "#\n# /etc/hosts: static lookup ta"..., 4096) = 145
    read(4, "", 4096) = 0
    close(4) = 0
    munmap(0xb7f90000, 4096) = 0
    open("/etc/ld.so.cache", O_RDONLY) = 4
    fstat64(4, {st_mode=S_IFREG|0644, st_size=99005, ...}) = 0
    mmap2(NULL, 99005, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f78000
    close(4) = 0
    open("/lib/libnss_dns.so.2", O_RDONLY) = 4
    read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\r\0"..., 512) = 512
    fstat64(4, {st_mode=S_IFREG|0755, st_size=21006, ...}) = 0
    mmap2(NULL, 20616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7aea000
    mmap2(0xb7aee000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x3) = 0xb7aee000
    close(4) = 0
    munmap(0xb7f78000, 99005) = 0
    socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
    connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("208.67.222.222")}, 28) = 0
    fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR)
    fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
    gettimeofday({1184731631, 648888}, NULL) = 0
    poll([{fd=4, events=POLLOUT, revents=POLLOUT}], 1, 0) = 1
    send(4, "p\210\1\0\0\1\0\0\0\0\0\0\tlocalhost\0\0\34\0\1", 27, MSG_NOSIGNAL) = 27
    poll([{fd=4, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
    ioctl(4, FIONREAD, [27]) = 0
    recvfrom(4, "p\210\201\200\0\1\0\0\0\0\0\0\tlocalhost\0\0\34\0\1", 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("208.67.222.222")}, [16]) = 27
    close(4) = 0
    socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
    connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("208.67.222.222")}, 28) = 0
    fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR)
    fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
    gettimeofday({1184731631, 950995}, NULL) = 0
    poll([{fd=4, events=POLLOUT, revents=POLLOUT}], 1, 0) = 1
    send(4, "\261\347\1\0\0\1\0\0\0\0\0\0\tlocalhost\0\0\1\0\1", 27, MSG_NOSIGNAL) = 27
    poll([{fd=4, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
    ioctl(4, FIONREAD, [43]) = 0
    recvfrom(4, "\261\347\201\200\0\1\0\1\0\0\0\0\tlocalhost\0\0\1\0\1\300"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("208.67.222.222")}, [16]) = 43
    close(4) = 0
    open("/var/log/cups/error_log", O_RDWR|O_CREAT|O_APPEND|O_LARGEFILE, 0666) = 4
    fcntl64(4, F_GETFD) = 0
    fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
    fchown32(4, 0, 7) = 0
    fchmod(4, 0644) = 0
    time(NULL) = 1184731632
    write(4, "I [18/Jul/2007:09:37:12 +0530] L"..., 69) = 69
    read(3, "", 4096) = 0
    close(3) = 0
    getuid32() = 0
    time(NULL) = 1184731632
    write(4, "I [18/Jul/2007:09:37:12 +0530] L"..., 80) = 80
    chown32("/etc/cups/ssl/server.crt", 0, 7) = -1 ENOENT (No such file or directory)
    chmod("/etc/cups/ssl/server.crt", 0600) = -1 ENOENT (No such file or directory)
    chown32("/etc/cups/ssl/server.key", 0, 7) = -1 ENOENT (No such file or directory)
    chmod("/etc/cups/ssl/server.key", 0600) = -1 ENOENT (No such file or directory)
    stat64("/var/cache/cups", {st_mode=S_IFDIR|0775, st_size=48, ...}) = 0
    stat64("/var/run/cups", {st_mode=S_IFDIR|0755, st_size=72, ...}) = 0
    stat64("/var/run/cups/certs", {st_mode=S_IFDIR|0511, st_size=48, ...}) = 0
    stat64("/etc/cups", {st_mode=S_IFDIR|0755, st_size=520, ...}) = 0
    stat64("/etc/cups/ppd", {st_mode=S_IFDIR|0755, st_size=48, ...}) = 0
    stat64("/etc/cups/ssl", {st_mode=S_IFDIR|0700, st_size=48, ...}) = 0
    stat64("/etc/cups/cupsd.conf", {st_mode=S_IFREG|0640, st_size=2929, ...}) = 0
    stat64("/etc/cups/classes.conf", 0xbf9d898c) = -1 ENOENT (No such file or directory)
    stat64("/etc/cups/printers.conf", 0xbf9d898c) = -1 ENOENT (No such file or directory)
    stat64("/etc/cups/passwd.md5", 0xbf9d898c) = -1 ENOENT (No such file or directory)
    time(NULL) = 1184731632
    write(4, "I [18/Jul/2007:09:37:12 +0530] U"..., 79) = 79
    stat64("/var/spool/cups", {st_mode=S_IFDIR|0710, st_size=72, ...}) = 0
    stat64("/var/spool/cups/tmp", {st_mode=S_IFDIR|S_ISVTX|0770, st_size=48, ...}) = 0
    open("/var/spool/cups/tmp", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
    fstat64(3, {st_mode=S_IFDIR|S_ISVTX|0770, st_size=48, ...}) = 0
    fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
    time(NULL) = 1184731632
    write(4, "I [18/Jul/2007:09:37:12 +0530] C"..., 92) = 92
    getdents64(3, /* 2 entries */, 4096) = 48
    getdents64(3, /* 0 entries */, 4096) = 0
    close(3) = 0
    time(NULL) = 1184731632
    write(4, "I [18/Jul/2007:09:37:12 +0530] C"..., 65) = 65
    time(NULL) = 1184731632
    write(4, "I [18/Jul/2007:09:37:12 +0530] A"..., 79) = 79
    time(NULL) = 1184731632
    write(4, "I [18/Jul/2007:09:37:12 +0530] U"..., 70) = 70
    time(NULL) = 1184731632
    write(4, "I [18/Jul/2007:09:37:12 +0530] F"..., 56) = 56
    open("/etc/cups", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
    fstat64(3, {st_mode=S_IFDIR|0755, st_size=520, ...}) = 0
    fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
    getdents64(3, /* 16 entries */, 4096) = 552
    stat64("/etc/cups/ppd", {st_mode=S_IFDIR|0755, st_size=48, ...}) = 0
    stat64("/etc/cups/ssl", {st_mode=S_IFDIR|0700, st_size=48, ...}) = 0
    stat64("/etc/cups/cupsd.conf.pacsave", {st_mode=S_IFREG|0640, st_size=2929, ...}) = 0
    stat64("/etc/cups/interfaces", {st_mode=S_IFDIR|0755, st_size=48, ...}) = 0
    stat64("/etc/cups/pstoraster.convs", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
    stat64("/etc/cups/mime.types.pacsave", {st_mode=S_IFREG|0644, st_size=6403, ...}) = 0
    stat64("/etc/cups/cupsd.conf.default", {st_mode=S_IFREG|0640, st_size=2371, ...}) = 0
    stat64("/etc/cups/mime.convs.pacsave", {st_mode=S_IFREG|0644, st_size=4757, ...}) = 0
    stat64("/etc/cups/cups-pdf.conf", {st_mode=S_IFREG|0644, st_size=8833, ...}) = 0
    stat64("/etc/cups/command.types", {st_mode=S_IFREG|0644, st_size=1215, ...}) = 0
    open("/etc/cups/command.types", O_RDONLY|O_LARGEFILE) = 5
    fcntl64(5, F_GETFD) = 0
    fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    read(5, "#\n# \"$Id: command.types,v 1.1 20"..., 4096) = 1215
    read(5, "", 4096) = 0
    close(5) = 0
    stat64("/etc/cups/cups-pdf.conf.pacsave", {st_mode=S_IFREG|0644, st_size=8833, ...}) = 0
    stat64("/etc/cups/mime.convs", {st_mode=S_IFREG|0644, st_size=4757, ...}) = 0
    stat64("/etc/cups/cupsd.conf", {st_mode=S_IFREG|0640, st_size=2929, ...}) = 0
    stat64("/etc/cups/mime.types", {st_mode=S_IFREG|0644, st_size=6403, ...}) = 0
    open("/etc/cups/mime.types", O_RDONLY|O_LARGEFILE) = 5
    fcntl64(5, F_GETFD) = 0
    fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    read(5, "#\n# \"$Id: mime.types 6625 2007-0"..., 4096) = 4096
    read(5, ",0xee) char(3,0xef))\nimage/tiff\t"..., 4096) = 2307
    read(5, "", 4096) = 0
    close(5) = 0
    getdents64(3, /* 0 entries */, 4096) = 0
    lseek(3, 0, SEEK_SET) = 0
    getdents64(3, /* 16 entries */, 4096) = 552
    stat64("/etc/cups/ppd", {st_mode=S_IFDIR|0755, st_size=48, ...}) = 0
    stat64("/etc/cups/ssl", {st_mode=S_IFDIR|0700, st_size=48, ...}) = 0
    stat64("/etc/cups/cupsd.conf.pacsave", {st_mode=S_IFREG|0640, st_size=2929, ...}) = 0
    stat64("/etc/cups/interfaces", {st_mode=S_IFDIR|0755, st_size=48, ...}) = 0
    stat64("/etc/cups/pstoraster.convs", {st_mode=S_IFREG|0644, st_size=946, ...}) = 0
    open("/etc/cups/pstoraster.convs", O_RDONLY|O_LARGEFILE) = 5
    fcntl64(5, F_GETFD) = 0
    fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    read(5, "#\n# \"$Id: pstoraster.convs,v 1.1"..., 4096) = 946
    access("/usr/lib/cups/filter/pstoraster", F_OK) = 0
    read(5, "", 4096) = 0
    close(5) = 0
    stat64("/etc/cups/mime.types.pacsave", {st_mode=S_IFREG|0644, st_size=6403, ...}) = 0
    stat64("/etc/cups/cupsd.conf.default", {st_mode=S_IFREG|0640, st_size=2371, ...}) = 0
    stat64("/etc/cups/mime.convs.pacsave", {st_mode=S_IFREG|0644, st_size=4757, ...}) = 0
    stat64("/etc/cups/cups-pdf.conf", {st_mode=S_IFREG|0644, st_size=8833, ...}) = 0
    stat64("/etc/cups/command.types", {st_mode=S_IFREG|0644, st_size=1215, ...}) = 0
    stat64("/etc/cups/cups-pdf.conf.pacsave", {st_mode=S_IFREG|0644, st_size=8833, ...}) = 0
    stat64("/etc/cups/mime.convs", {st_mode=S_IFREG|0644, st_size=4757, ...}) = 0
    open("/etc/cups/mime.convs", O_RDONLY|O_LARGEFILE) = 5
    fcntl64(5, F_GETFD) = 0
    fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    read(5, "#\n# \"$Id: mime.convs 6406 2007-0"..., 4096) = 4096
    access("/usr/lib/cups/filter/pdftops", F_OK) = 0
    access("/usr/lib/cups/filter/pstops", F_OK) = 0
    access("/usr/lib/cups/filter/hpgltops", F_OK) = 0
    access("/usr/lib/cups/filter/texttops", F_OK) = 0
    access("/usr/lib/cups/filter/imagetops", F_OK) = 0
    access("/usr/lib/cups/filter/imagetoraster", F_OK) = 0
    read(5, "s-raster\t100\timagetoraster\nimage"..., 4096) = 661
    read(5, "", 4096) = 0
    close(5) = 0
    stat64("/etc/cups/cupsd.conf", {st_mode=S_IFREG|0640, st_size=2929, ...}) = 0
    stat64("/etc/cups/mime.types", {st_mode=S_IFREG|0644, st_size=6403, ...}) = 0
    getdents64(3, /* 0 entries */, 4096) = 0
    close(3) = 0
    time(NULL) = 1184731632
    write(4, "I [18/Jul/2007:09:37:12 +0530] L"..., 94) = 94
    open("/usr/share/cups/banners", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
    fstat64(3, {st_mode=S_IFDIR|0755, st_size=224, ...}) = 0
    fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
    getdents64(3, /* 8 entries */, 4096) = 240
    stat64("/usr/share/cups/banners/topsecret", {st_mode=S_IFREG|0644, st_size=7406, ...}) = 0
    open("/usr/share/cups/banners/topsecret", O_RDONLY|O_LARGEFILE) = 5
    fcntl64(5, F_GETFD) = 0
    fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    read(5, "%!PS-Adobe-3.0\n%%BoundingBox: 0 "..., 4096) = 4096
    close(5) = 0
    stat64("/usr/share/cups/banners/secret", {st_mode=S_IFREG|0644, st_size=7395, ...}) = 0
    open("/usr/share/cups/banners/secret", O_RDONLY|O_LARGEFILE) = 5
    fcntl64(5, F_GETFD) = 0
    fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    read(5, "%!PS-Adobe-3.0\n%%BoundingBox: 0 "..., 4096) = 4096
    close(5) = 0
    stat64("/usr/share/cups/banners/confidential", {st_mode=S_IFREG|0644, st_size=7413, ...}) = 0
    open("/usr/share/cups/banners/confidential", O_RDONLY|O_LARGEFILE) = 5
    fcntl64(5, F_GETFD) = 0
    fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    read(5, "%!PS-Adobe-3.0\n%%BoundingBox: 0 "..., 4096) = 4096
    close(5) = 0
    stat64("/usr/share/cups/banners/unclassified", {st_mode=S_IFREG|0644, st_size=7413, ...}) = 0
    open("/usr/share/cups/banners/unclassified", O_RDONLY|O_LARGEFILE) = 5
    fcntl64(5, F_GETFD) = 0
    fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    read(5, "%!PS-Adobe-3.0\n%%BoundingBox: 0 "..., 4096) = 4096
    close(5) = 0
    stat64("/usr/share/cups/banners/standard", {st_mode=S_IFREG|0644, st_size=6948, ...}) = 0
    open("/usr/share/cups/banners/standard", O_RDONLY|O_LARGEFILE) = 5
    fcntl64(5, F_GETFD) = 0
    fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    read(5, "%!PS-Adobe-3.0\n%%BoundingBox: 0 "..., 4096) = 4096
    close(5) = 0
    stat64("/usr/share/cups/banners/classified", {st_mode=S_IFREG|0644, st_size=7407, ...}) = 0
    open("/usr/share/cups/banners/classified", O_RDONLY|O_LARGEFILE) = 5
    fcntl64(5, F_GETFD) = 0
    fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    read(5, "%!PS-Adobe-3.0\n%%BoundingBox: 0 "..., 4096) = 4096
    close(5) = 0
    getdents64(3, /* 0 entries */, 4096) = 0
    close(3) = 0
    open("/etc/cups/printers.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    open("/etc/cups/classes.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    open("/var/cache/cups/remote.cache", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    open("/etc/printcap", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3
    fcntl64(3, F_GETFD) = 0
    fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
    write(3, "# This file was automatically ge"..., 135) = 135
    close(3) = 0
    open("/usr/lib/cups/notifier", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
    fstat64(3, {st_mode=S_IFDIR|0755, st_size=104, ...}) = 0
    fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
    getdents64(3, /* 4 entries */, 4096) = 112
    stat64("/usr/lib/cups/notifier/testnotify", {st_mode=S_IFREG|0755, st_size=9502, ...}) = 0
    stat64("/usr/lib/cups/notifier/mailto", {st_mode=S_IFREG|0755, st_size=18642, ...}) = 0
    getdents64(3, /* 0 entries */, 4096) = 0
    close(3) = 0
    stat64("/var/cache/cups/job.cache", 0xbf9d896c) = -1 ENOENT (No such file or directory)
    stat64("/var/spool/cups", {st_mode=S_IFDIR|0710, st_size=72, ...}) = 0
    open("/var/spool/cups", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
    fstat64(3, {st_mode=S_IFDIR|0710, st_size=72, ...}) = 0
    fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
    getdents64(3, /* 3 entries */, 4096) = 72
    stat64("/var/spool/cups/tmp", {st_mode=S_IFDIR|S_ISVTX|0770, st_size=48, ...}) = 0
    getdents64(3, /* 0 entries */, 4096) = 0
    close(3) = 0
    open("/var/cache/cups/job.cache", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    open("/etc/cups/subscriptions.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
    time(NULL) = 1184731632
    write(4, "I [18/Jul/2007:09:37:12 +0530] F"..., 53) = 53
    brk(0x80dd000) = 0x80dd000
    access("/dev/random", R_OK) = 0
    access("/dev/urandom", R_OK) = 0
    open("/dev/urandom", O_RDONLY) = 3
    fcntl64(3, F_GETFD) = 0
    fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
    select(4, [3], NULL, NULL, {3, 0}) = 1 (in [3], left {3, 0})
    read(3, "SU~\223\206]\234\333i;f\t\360\10\2569\310U\205\302\206"..., 120) = 120
    select(4, [3], NULL, NULL, {3, 0}) = 1 (in [3], left {3, 0})
    read(3, "V\231f~c\352E\244\254;\353\242\345\347\237|p\255z\375\341"..., 120) = 120
    select(4, [3], NULL, NULL, {3, 0}) = 1 (in [3], left {3, 0})
    read(3, "\311\275_y\334-#\307\303a$\374\264Y\272\267>9T\233:\23"..., 120) = 120
    select(4, [3], NULL, NULL, {3, 0}) = 1 (in [3], left {3, 0})
    read(3, "6\303\3432\3\314\233\370\0169\370j\301K\327w\2267\10\325"..., 120) = 120
    select(4, [3], NULL, NULL, {3, 0}) = 1 (in [3], left {3, 0})
    read(3, "(\337\206\336Fs0@(\323\320\211\f\227\302(\30\310\276uZ"..., 120) = 120
    gettimeofday({1184731632, 362677}, NULL) = 0
    getrusage(RUSAGE_SELF, {ru_utime={0, 8000}, ru_stime={0, 4000}, ...}) = 0
    time(NULL) = 1184731632
    times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1718108562
    socket(PF_NETLINK, SOCK_RAW, 0) = 5
    bind(5, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
    getsockname(5, {sa_family=AF_NETLINK, pid=5625, groups=00000000}, [12]) = 0
    time(NULL) = 1184731632
    sendto(5, "\24\0\0\0\26\0\1\3\360\221\235F\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
    recvmsg(5, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0\360\221\235F\371\25\0\0\2\10\200\376\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108
    recvmsg(5, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0\360\221\235F\371\25\0\0\n\200\200\376"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 128
    recvmsg(5, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\360\221\235F\371\25\0\0\0\0\0\0\1\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
    close(5) = 0
    open("/etc/hosts", O_RDONLY) = 5
    fcntl64(5, F_GETFD) = 0
    fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    fstat64(5, {st_mode=S_IFREG|0644, st_size=145, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f90000
    read(5, "#\n# /etc/hosts: static lookup ta"..., 4096) = 145
    read(5, "", 4096) = 0
    close(5) = 0
    munmap(0xb7f90000, 4096) = 0
    open("/etc/hosts", O_RDONLY) = 5
    fcntl64(5, F_GETFD) = 0
    fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    fstat64(5, {st_mode=S_IFREG|0644, st_size=145, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f90000
    read(5, "#\n# /etc/hosts: static lookup ta"..., 4096) = 145
    read(5, "", 4096) = 0
    close(5) = 0
    munmap(0xb7f90000, 4096) = 0
    socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
    setsockopt(5, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
    bind(5, {sa_family=AF_INET, sin_port=htons(631), sin_addr=inet_addr("208.69.32.130")}, 16) = -1 EADDRNOTAVAIL (Cannot assign requested address)
    time(NULL) = 1184731632
    write(4, "E [18/Jul/2007:09:37:12 +0530] U"..., 118) = 118
    close(5) = 0
    time(NULL) = 1184731632
    write(4, "X [18/Jul/2007:09:37:12 +0530] N"..., 97) = 97
    kill(5625, SIGTERM) = 0
    --- SIGTERM (Terminated) @ 0 (0) ---
    +++ killed by SIGTERM +++
    Process 5625 detached
    [root@Athlon devendra]#
    Who's killing my process ?

  • Error in packaged application Document Library: for the apex team ?

    Dear team-members,
    I've installed this application. Looks nice, my compliments.
    I can make new announcements: it seems possible to underline, or make bullets and so on, but the "format" don't appear in the result: no bullets, no underlining, just ordinary text without spaces.....
    Hope I'm clear.
    Leo

    Leo:
    That is a good point. The home page is using a derived column, and the HTML Expression for the column formatting. That must escape the HTML.
    I think the fix for a future release would be to not use that derived column, and just use a standard report with a custom template. It is also possible that for announcements and tasks it is more appropriate to use a standard Textarea instead of Textarea with HTML Editor.
    Thanks for your feedback,
    Jason

  • VMM 2012 SP1 Console Fail Installation With Error 1603

    Dear Sir,
    I am trying to install VMM 2012 SP1 console on my management Windows 8 Enterprise machine, but it's failing:
    [Installing C:\Users\XXXXX\Desktop\VMM 2012 SP1\amd64\setup\msi\Client\AdminConsole.msi failed with Windows Installer error 1603.
    See C:\ProgramData\VMMLogs\AdminConsole.log for more information. After resolving the problem, retry setup.]
    I am admin with full permission, and the machine is joined to the domain.
    Please find below VMMlogs for more information:
    Property(S): CountComponentClients = DAFEE2F2-CF16-47f5-94A7-725D0795BCB9
    Property(S): RegisterCmdlets = "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\installUtil.exe" /LogFile= /LogToConsole=false "C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\Microsoft.SystemCenter.VirtualMachineManager.dll"
    Property(S): RollbackCmdlets = "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\installUtil.exe" /u /LogFile= /LogToConsole=false "C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\Microsoft.SystemCenter.VirtualMachineManager.dll"
    Property(S): TRANSLATE_SID = S-1-5-11
    Property(S): TRANSLATE_SID_PROPERTYNAME = AUTHENTICATEDUSERS
    Property(S): AUTHENTICATEDUSERS = Authenticated Users
    Property(S): DeleteAddInsOldFolder = "C:\Windows\SysWOW64\cmd.exe" /C rmdir "C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\AddInPipeline\AddIns.old" /S /Q
    Property(S): RenameAddInsFolder = "C:\Windows\SysWOW64\cmd.exe" /Q /C ren "C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\AddInPipeline\AddIns" "AddIns.old"
    Property(S): ProgramFiles64Folder = C:\Program Files\
    Property(S): TARGETDIR = F:\
    Property(S): ProgramMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\
    Property(S): SourceDir = C:\Users\supercharo\Desktop\VMM 2012 SP1\amd64\setup\msi\Client\
    Property(S): HelpDir = C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\help\
    Property(S): psModulesDir = C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\psModules\
    Property(S): INDIGOPORT = 8100
    Property(S): Manufacturer = Microsoft Corporation
    Property(S): ProductCode = {CDFB453F-5FA4-4884-B282-F46BDFC06051}
    Property(S): ProductLanguage = 1033
    Property(S): ProductName = Microsoft System Center Virtual Machine Manager Administrator Console (x64)
    Property(S): ProductVersion = 3.1.6011.0
    Property(S): INSTALLLEVEL = 100
    Property(S): ARPSYSTEMCOMPONENT = 1
    Property(S): ALLUSERS = 1
    Property(S): BOOTSTRAPPED = 0
    Property(S): REREGBINDIR = C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\wwwroot\bin\
    Property(S): SecureCustomProperties = ANYVERSION
    Property(S): Trace.3812768D_658A_4BB6_9A68_F288BE3E9CF5 = C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\Trace\
    Property(S): RegisterEventManifest = "wevtutil.exe" im "C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\Trace\VmmEtwEvents.Man"
    Property(S): RollbackRegisterEventManifest = "wevtutil.exe" um "C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\Trace\VmmEtwEvents.Man"
    Property(S): ExecXmlFile = 2€0€C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\Trace\VmmEtwEvents.Man€7€1€/*/*/*/*[@messageFileName]€messageFileName€C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\Trace\Microsoft.VirtualManager.EtwResources.dll€2€0€C:\Program
    Files\Microsoft System Center 2012\Virtual Machine Manager\bin\Trace\VmmEtwEvents.Man€7€1€/*/*/*/*[@resourceFileName]€resourceFileName€C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\Trace\Microsoft.VirtualManager.EtwResources.dll
    Property(S): MsiLogFileLocation = C:\ProgramData\VMMLogs\AdminConsole.log
    Property(S): PackageCode = {A96E8FEC-A027-4FF8-A395-1ECC0C460677}
    Property(S): ProductState = -1
    Property(S): PackagecodeChanging = 1
    Property(S): INSTALLINGLANGUAGE = 1033
    Property(S): REBOOT = ReallySuppress
    Property(S): CURRENTDIRECTORY = C:\Users\supercharo\AppData\Local\Temp\VMB790.tmp\Setup
    Property(S): CLIENTUILEVEL = 3
    Property(S): MSICLIENTUSESEXTERNALUI = 1
    Property(S): CLIENTPROCESSID = 968
    Property(S): VersionDatabase = 301
    Property(S): VersionMsi = 5.00
    Property(S): VersionNT = 602
    Property(S): VersionNT64 = 602
    Property(S): WindowsBuild = 9200
    Property(S): ServicePackLevel = 0
    Property(S): ServicePackLevelMinor = 0
    Property(S): MsiNTProductType = 1
    Property(S): WindowsFolder = C:\Windows\
    Property(S): WindowsVolume = C:\
    Property(S): System64Folder = C:\Windows\system32\
    Property(S): SystemFolder = C:\Windows\SysWOW64\
    Property(S): RemoteAdminTS = 1
    Property(S): TempFolder = C:\Users\SUPERC~1\AppData\Local\Temp\
    Property(S): ProgramFilesFolder = C:\Program Files (x86)\
    Property(S): CommonFilesFolder = C:\Program Files (x86)\Common Files\
    Property(S): CommonFiles64Folder = C:\Program Files\Common Files\
    Property(S): AppDataFolder = C:\Users\supercharo\AppData\Roaming\
    Property(S): FavoritesFolder = C:\Users\supercharo\Favorites\
    Property(S): NetHoodFolder = C:\Users\supercharo\AppData\Roaming\Microsoft\Windows\Network Shortcuts\
    Property(S): PersonalFolder = C:\Users\supercharo\Documents\
    Property(S): PrintHoodFolder = C:\Users\supercharo\AppData\Roaming\Microsoft\Windows\Printer Shortcuts\
    Property(S): RecentFolder = C:\Users\supercharo\AppData\Roaming\Microsoft\Windows\Recent\
    Property(S): SendToFolder = C:\Users\supercharo\AppData\Roaming\Microsoft\Windows\SendTo\
    Property(S): TemplateFolder = C:\ProgramData\Microsoft\Windows\Templates\
    Property(S): CommonAppDataFolder = C:\ProgramData\
    Property(S): LocalAppDataFolder = C:\Users\supercharo\AppData\Local\
    Property(S): MyPicturesFolder = C:\Users\supercharo\Pictures\
    Property(S): AdminToolsFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\
    Property(S): StartupFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\
    Property(S): StartMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\
    Property(S): DesktopFolder = C:\Users\Public\Desktop\
    Property(S): FontsFolder = C:\Windows\Fonts\
    Property(S): GPTSupport = 1
    Property(S): OLEAdvtSupport = 1
    Property(S): ShellAdvtSupport = 1
    Property(S): MsiAMD64 = 6
    Property(S): Msix64 = 6
    Property(S): Intel = 6
    Property(S): PhysicalMemory = 32695
    Property(S): VirtualMemory = 58675
    Property(S): AdminUser = 1
    Property(S): MsiTrueAdminUser = 1
    Property(S): LogonUser = supercharo
    Property(S): UserSID = S-1-5-21-3202008507-3906799607-3053210984-500
    Property(S): UserLanguageID = 1033
    Property(S): ComputerName = CHARO-Z1
    Property(S): SystemLanguageID = 1033
    Property(S): ScreenX = 1024
    Property(S): ScreenY = 768
    Property(S): CaptionHeight = 23
    Property(S): BorderTop = 1
    Property(S): BorderSide = 1
    Property(S): TextHeight = 16
    Property(S): TextInternalLeading = 3
    Property(S): ColorBits = 32
    Property(S): TTCSupport = 1
    Property(S): Time = 23:20:44
    Property(S): Date = 2/17/2013
    Property(S): MsiNetAssemblySupport = 4.0.30319.17929
    Property(S): MsiWin32AssemblySupport = 6.2.9200.16384
    Property(S): RedirectedDllSupport = 2
    Property(S): MsiRunningElevated = 1
    Property(S): Privileged = 1
    Property(S): USERNAME = CHARO
    Property(S): DATABASE = C:\Windows\Installer\113cc0a.msi
    Property(S): OriginalDatabase = C:\Users\supercharo\Desktop\VMM 2012 SP1\amd64\setup\msi\Client\AdminConsole.msi
    Property(S): UILevel = 2
    Property(S): ACTION = INSTALL
    Property(S): ComponentCount = 0
    Property(S): ROOTDRIVE = F:\
    Property(S): CostingComplete = 1
    Property(S): OutOfDiskSpace = 0
    Property(S): OutOfNoRbDiskSpace = 0
    Property(S): PrimaryVolumeSpaceAvailable = 0
    Property(S): PrimaryVolumeSpaceRequired = 0
    Property(S): PrimaryVolumeSpaceRemaining = 0
    Property(S): SOURCEDIR = C:\Users\supercharo\Desktop\VMM 2012 SP1\amd64\setup\msi\Client\
    Property(S): SourcedirProduct = {CDFB453F-5FA4-4884-B282-F46BDFC06051}
    Property(S): ProductToBeRegistered = 1
    MSI (s) (DC:2C) [23:20:44:051]: Note: 1: 1708 
    MSI (s) (DC:2C) [23:20:44:051]: Product: Microsoft System Center Virtual Machine Manager Administrator Console (x64) -- Installation failed.
    MSI (s) (DC:2C) [23:20:44:052]: Windows Installer installed the product. Product Name: Microsoft System Center Virtual Machine Manager Administrator Console (x64). Product Version: 3.1.6011.0. Product Language: 1033. Manufacturer: Microsoft Corporation. Installation
    success or error status: 1603.
    MSI (s) (DC:2C) [23:20:44:067]: Deferring clean up of packages/files, if any exist
    MSI (s) (DC:2C) [23:20:44:068]: MainEngineThread is returning 1603
    MSI (s) (DC:A4) [23:20:44:072]: RESTART MANAGER: Session closed.
    MSI (s) (DC:A4) [23:20:44:072]: No System Restore sequence number for this installation.
    === Logging stopped: 02/17/2013  23:20:44 ===
    MSI (s) (DC:A4) [23:20:44:076]: User policy value 'DisableRollback' is 0
    MSI (s) (DC:A4) [23:20:44:076]: Machine policy value 'DisableRollback' is 0
    MSI (s) (DC:A4) [23:20:44:076]: Incrementing counter to disable shutdown. Counter after increment: 0
    MSI (s) (DC:A4) [23:20:44:076]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
    MSI (s) (DC:A4) [23:20:44:077]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
    MSI (s) (DC:A4) [23:20:44:078]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
    MSI (s) (DC:A4) [23:20:44:084]: Destroying RemoteAPI object.
    MSI (s) (DC:A4) [23:20:44:084]: Custom Action Manager thread ending.
    MSI (c) (C8:18) [23:20:44:086]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
    MSI (c) (C8:18) [23:20:44:086]: MainEngineThread is returning 1603
    === Verbose logging stopped: 02/17/2013  23:20:44 ===
    Your help is highly appreciated.
    Thank you.
    Regards,

    Mine is solved.
    Was because I removed VMM 2012 R2 on the same host (again, because R2 doesn't do P2V conversions) but the uninstall failed to remove "Microsoft Web Deploy 3.5". When VMM 2012 SP1 installs uses Web Deploy 3.0 and was blocked by the newer version. uninstalled
    3.5 and then the console install worked.
    hopes this helps someone out there.
    Jae

  • My ipod doesn't sync all the songs in my library and comes up with error messages. is the software corrupted?

    My ipod classic only syncs 25% of the tunes in my library (it has the capacity to do all of them). It also comes up with various error messages. Is this a software issue that can be fixed??

    What are these error messages?
    B-rock

  • Illustrator installation with error.

    I'm trying to do the installation of the illustrator but giving this error 82829s5 already checked the procedures that are reported, but still could not install the program.      

    @EvandroSteyer, This is a bootstrapper error and could be caused due to any of the following reasons:
    A restart is pending (Windows)
    Insufficient hard disk space
    OS does not meet the minimum system requirements
    Installer failed to initialize
    You are already running another installer
    Installation to case-sensitive file system (Mac OS)
    A Windows Update installation is in progress
    Please check the solutions mentioned in this document: http://helpx.adobe.com/creative-suite/kb/troubleshoot-error-messages-bootstrapper-cs5.html and post the outcome after you've completed following the solutions mentioned in the document.

  • VMM Library server refresh fails with error 2910

    After changing our Library structure I'm getting this error whenever I try to refresh the library share on one of our Library servers:
    I have no idea why VMM tries to access a file inside userprofiles\temp. The svc_scvmm is a service account, but not the account used for communication with the library server from VMM. The correct service account is a member of the local admins, so the problem
    shouldn't lie there. The file it's asking for simply doesn't exist.
    Anyone have any pointers?

    Hi Trond,
    "Was your library share on the VMM server? VMM requires that you have a Library Server on the VMM server.  If you try to remove this server through VMM, you will get an error not allowing you to do this. 
    If the files on the new share are the same ones that were refeshed into the old share, the library refresher should find that they have moved.  Whenever the library refresher brings files under management it tags them with an ID.  However
    if these files were copied before they had been put into the orginal library share, they will be missing the necessary tag that identifies them as being identical and therefore not found.  At this point you'll have to remove and recreate the templates.
    I believe the error you are seeing is because the VMM Server account is not in the administrators group on the host machine. You could either add the account or re-add the library server using the administrator console. "
    This is quoted from the following similar thread :
    https://social.technet.microsoft.com/Forums/en-US/63225d77-9efe-4ecd-8903-468a7f7eb8f8/change-of-a-library-server?forum=virtualmachinemanager
    Hope this is helpful to you .
    Best Regards,
    Elton Ji
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

  • Document Library Versioning

    First off...great forum, it's saved me numerous times in the past. Search didn't help me out this time around.
    I've been using the packaged app Document Library v0.92 on Apex 3.01.00.08. Recently I expanded usage of the doc lib to other users and noticed some strange behavior in the versioning functionality. Whenever a new version of an existing document is uploaded the user under "modified by" is overwritten for all previous versions. I cannot verify this ever worked. I downloaded the app again and reinstalled into a different schema with the same result. Anyone else notice this?
    Thanks
    Mike

    Thank you for the feedback. I'm going to look at this more myself but what I ended up doing was modifying the report sql on page 5 to select the user from the created_by column in doclib_documents instead of the modified_by column. The created_by column gets updated with the user name of the modifying user...essentially this is what should be happening to the modified_by column. Is the created_by column supposed to store the user name that originally uploaded the document and the modified_by column store the user name that added a new version? At this point I'm trying to understand the need for both columns... In my deployment I don't think I need to know who the originator of the document is if that's the intended use for the created_by column. Still playing with it but I'll probably have to modify page 1 and 9 as well. Seem like it should work.... Any holes in my logic here?
    Thanks again

Maybe you are looking for

  • UPGRADE CONFUSION! What are the facts?

    Hi All! I have the 'new' Intel 1.83Mhz mac mini but would like to upgrade my processor. Is this even possible? The techie over at my local mac store told me that the processor can't be upgraded due to the motherboard?! Is this true or farce? I have b

  • I have downloads that I did not authorize. How do I stop it.

    There are apparently purchases made within December and January that I have not requested nor authorized. I purchased an Itunes card and placed the money in my account. I just checked and there are purchases made that I did not request. What do I do

  • Cant find messages app on macbook air.

    I have version "Mac OS X Lion 10.7.5" and want to iMessage with it. I've looked in applications and spotlight search for message app and nothing has come up. Please help!

  • Redirecting the servlet output to jsp

    Hi i need to redirect my servlet out put to jsp in result set's every row i have 9 columns this result set how can i redirct to jsp plz can any one let me know with an example thanks a lot in advance

  • How to create a second page?

    Hi. I want to create a second page and then call it from code and maybe with some transition effects when it is made current. Can you show me how? Thanks