-bash: ulimit: pipe size: cannot modify limit: Invalid argument
Followed the Oracle documentation to install Oracle 10g R2 on RedHat 4(UP1) x86-64 and I'm getting the following error when I login to the server from a putty client:
-bash: ulimit: pipe size: cannot modify limit: Invalid argument
Can someone explain why I'm getting this error and if there is a way to fix it?
Thanks,
Denise
Hi!
Just delete changes in /etc/profile and make changes as shown here in file /etc/security/limits.conf.
Read this article:
Limiting Maximum Number of Open File Descriptors for the Oracle User
After /proc/sys/fs/file-max has been changed, see Setting File Handles, there is still a per user limit of maximum open file descriptors:
$ su - oracle
$ ulimit -n
1024
$
To change this limit, edit the /etc/security/limits.conf file as root and make the following changes or add the following lines, respectively:
oracle soft nofile 4096
oracle hard nofile 63536
The "soft limit" in the first line defines the number of file handles or open files that the Oracle user will have after login. If the Oracle user gets error messages about running out of file handles, then the Oracle user can increase the number of file handles like in this example up to 63536 ("hard limit") by executing the following command:
ulimit -n 63536
You can set the "soft" and "hard" limits higher if necessary.
NOTE:
I do not recommend to set the "hard" limit for nofile for the oracle user equal to /proc/sys/fs/file-max. If you do that and the user uses up all the file handles, then the entire system will run out of file handles. This could mean that you won't be able to initiate new logins any more since the system won't be able to open any PAM modules that are required for the login process. That's why I set the hard limit to 63536 and not 65536.
That these limits work you also need to ensure that pam_limits is configured in the /etc/pam.d/system-auth file, or in /etc/pam.d/sshd for ssh, /etc/pam.d/su for su, or /etc/pam.d/login for local logins and telnet if you don't want to enable it for all login methods. Here are the two session entries I have in my /etc/pam.d/system-auth file:
session required /lib/security/$ISA/pam_limits.so
session required /lib/security/$ISA/pam_unix.so
Now login to the oracle user account since the changes will become effective for new login sessions only. Note that the ulimit options are different for other shells.
$ su - oracle
$ ulimit -n
4096
$
The default limit for oracle is now 4096 and the oracle user can increase the number of file handles up to 63536:
$ su - oracle
$ ulimit -n
4096
$ ulimit -n 63536
$ ulimit -n
63536
$
To make this change permanent, you could add "ulimit -n 63536" (for bash) to the ~oracle/.bash_profile file which is the user startup file for the bash shell on Red Hat Linux (to verify your shell execute echo $SHELL). To do this you could simply copy/paste the following commands for oracle's bash shell:
su - oracle
cat >> ~oracle/.bash_profile << EOF
ulimit -n 63536
EOF
To make the above changes permanent, you could also set the soft limit equal to the hard limit in /etc/security/limits.conf which I prefer:
oracle soft nofile 63536
oracle hard nofile 63536
Similar Messages
-
Every time I open a terminal (bash), it shows error " ulimit: open files: cannot modify limit: Invalid argument". I googled it but did not find the solution that works. My OS is 10.8.2. I followed the instruction here http://wordpress.org/support/topic/upgraded-to-php-530-on-mac-now-no-database-co nnection but it doesn't work.(basically, I just commented some lines in that file). Can anyone help?
Back up all data.
Select
Shell ▹ New Command
from the Terminal menu bar. Copy and paste the following line into the text box that opens:
mkdir disabled_shell_files; mv .profile .bash* $_
Your old shell initialization and history files will be saved in a directory with the indicated name at the top level of your home directory. Test. -
-bash: ulimit: open files: cannot modify limit: Operation not permitted
Hi all,
i´m preparing a linux 64bits environment to install Oracle 10g R2. I´m following the installation manual and there say that:
Depending on the oracle user's default shell, make the following changes to the default shell startup file:
For the Bourne, Bash, or Korn shell, add the following lines in the /etc/profile file (or the /etc/profile.local file on SUSE systems):
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
Ok, I did it, so when execute the follow comand I get a error like this.
tetis:/etc # su - oracle
-bash: ulimit: open files: cannot modify limit: Operation not permitted
oracle@tetis:~>
Can anybody help me ?
Regards,
Wander (Brazil)The limits for -u and -n are defined in limits.conf, it looks like the -n section is not working (-u is already 16384), just to double check, show us the output for:
$ more /etc/security/limits.conf | grep oracle
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
$ more /etc/pam.d/login | grep pam_limits
session required pam_limits.soEnrique -
Ulimit "cannot modify limit" error when starting Apache
This isn't exactly an OSX Server problem, but I am trying to start Apache and subsequently Tomcat on my MacBook Pro so I can locally test a website before I deploy it to our test server. (The MacBook is a new machine to which I recently migrated my setup from my old PowerBook. The PowerBook is running 10.4.11, FWIW, and all worked well there.)
When I do this from the command line:
sudo /Library/Apache2/bin/apachectl start
I get:
/Library/Apache2/bin/apachectl: line 70: ulimit: open files: cannot modify limit: Invalid argument
And Apache is not started. This runs fine on my old machine. The culprit line from apachectl is:
ULIMITMAXFILES="ulimit -S -n `ulimit -H -n`"
Just running the'ulimit -H -n' yields 'unlimited'.
What's the problem here, and how do I fix it? I haven't found the answer by Googling.Back up all data.
Select
Shell ▹ New Command
from the Terminal menu bar. Copy and paste the following line into the text box that opens:
mkdir disabled_shell_files; mv .profile .bash* $_
Your old shell initialization and history files will be saved in a directory with the indicated name at the top level of your home directory. Test. -
I'm trying to increate the ulimits for max user processes and open files for the oracle user. I've set the values in limits.conf, /etc/profile and in oracle's environment scripts. Now when I log in as oracle I get the below errors. If I change the ulimits back to the original values errors go away but ulimits aren't changed.
login as: oracle
[email protected]'s password:
Last login: Fri Mar 6 09:56:02 2015 from mtkadmin12
You are logging onto an Oracle system.
Kickstarted on: 2014-06-05
-bash: ulimit: max user processes: cannot modify limit: Operation not permitted
-bash: ulimit: max user processes: cannot modify limit: Operation not permitted
[oracle@servername ~]$Thanks for the update.
I modified the /etc/security/limits.d/90-nproc.conf and added a line for oracle and also modifed the oracle.sh file. The ulimits are setting correctly when I su - oracle but they are still wrong when sshing in as oracle.
[root@mtkdevorap11d-1 ~]# su - oracle
[oracle@mtkdevorap11d-1 ~]$ ulimit -Ha
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 1030982
max locked memory (kbytes, -l) 94371840
max memory size (kbytes, -m) unlimited
open files (-n) 65536
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 16384
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
[oracle@mtkdevorap11d-1 ~]$
[oracle@mtkdevorap11d-2 ~]$ ssh mtkdevorap11d-1
Last login: Mon Mar 16 13:04:16 2015 from mtkdevorap11d-2.conveydev.com
You are logging onto an Oracle system.
Kickstarted on: 2014-06-05
[oracle@mtkdevorap11d-1 ~]$ ulimit -Ha
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 1030982
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 4096
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 16384
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
[oracle@mtkdevorap11d-1 ~]$ -
-bash: ulimit: max user processes: cannot modify limit: Operation not permi
Hi,
Installed 10g Forms&Reports only on RHEL 3ES.
Modified /etc/profile according to Oracle's documentation:
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -n 16384
ulimit -p 16384
else
ulimit -u 16384 -n 16384
fi
fi
But when I logon to the server, the following message shows:
"-bash: ulimit: max user processes: cannot modify limit: Operation not permitted"
What is the problem here?
Thanks
StephanHi,
Installed 10g Forms&Reports only on RHEL 3ES.
Modified /etc/profile according to Oracle's documentation:
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -n 16384
ulimit -p 16384
else
ulimit -u 16384 -n 16384
fi
fi
But when I logon to the server, the following message shows:
"-bash: ulimit: max user processes: cannot modify limit: Operation not permitted"
What is the problem here?
Thanks
Stephan -
Hi;
I writed one sh which is checking tablespace size and its working well ( i used this before for someother client) Now i try to run it on one server and i have this error:
/etc/profile: line 28: ulimit: max locked memory: cannot modify limit: Operation not permitted in /var/spool/mail/root
Anyone has idea what is problem?
ThanksWell, check line 28 of /etc/profile, and see what command it is trying to execute. If it's a ulimit -l command, check if the value it is trying to set the limit to is higher than the current ulimit value of the current user. If it is, then that operation is not allowed. You can increase the limit for the current user (at login time) by modifying /etc/security/limits.conf . This is documented in the various guides, notes, whitepapers that talk about installing Oracle database on Linux.
-
ORA-00604 & ORA-30512 CANNOT MODIFY TABLE MORE THAN ONCE IN A TRANSACTION
We have a requirement where two tables should be in sync at any given point
in time with respect to the structure of the tables.
Any change on table/column via ALTER (MODIFY, ADD, RENAME COLUMN, DROP
COLUMN) on the parent table should be replicated to the replica table.
I created a DDL_TRIGGER on the schema and the desired result is achieved but
for the following one scenario for which its failing.
The issue is, if we try to reduce the width of the column (via ALTER ..
MODIFY) it fails with the following error
ORA-00604: error occurred at recursive SQL level 1
ORA-30512: cannot modify DEVTESTF_OIM.REPLICA_ABC more than once in a
transaction
Please follow the steps to reproduce the issue (the issue is across the DB
version checked on 10.2, 11.1 and 11.2 DB version)
-- Step1 Create Parent Table
CREATE TABLE abc (col1 VARCHAR2(10))
-- Step2 Create Replica Table
CREATE TABLE replica_abc (col1 VARCHAR2(10))
-- Step3 Create DDL Trigger
CREATE OR REPLACE TRIGGER ddl_trigger
AFTER ALTER ON SCHEMA
DECLARE
operation VARCHAR2(30);
object_name VARCHAR2(30);
l_sqltext VARCHAR2(100);
i PLS_INTEGER;
l_count NUMBER:=0;
sql_text dbms_standard.ora_name_list_t;
BEGIN
i := dbms_standard.sql_txt(sql_text);
SELECT ora_sysevent, ora_dict_obj_name, UPPER(sql_text(i))
INTO operation, object_name, l_sqltext
FROM dual;
IF ora_dict_obj_name = 'ABC' THEN
l_count := INSTR(l_sqltext,'ADD CONSTRAINT',1,1);
l_count := l_count + INSTR(l_sqltext,'DISABLE',1,1);
l_count := l_count + INSTR(l_sqltext,'DROP CONSTRAINT',1,1);
l_count := l_count + INSTR(l_sqltext,'PRIMARY KEY',1,1);
l_count := l_count + INSTR(l_sqltext,'ADD CHECK',1,1);
IF (l_count = 0) THEN
l_count := INSTR(l_sqltext,'ADD',1,1);
l_count := l_count + INSTR(l_sqltext,'MODIFY',1,1);
l_count := l_count + INSTR(l_sqltext,'DROP COLUMN',1,1);
l_count := l_count + INSTR(l_sqltext,'RENAME
COLUMN',1,1);
IF (l_count >0) THEN
l_sqltext := REPLACE(l_sqltext,'TABLE ABC','TABLE REPLICA_ABC');
execute immediate l_sqltext;
END IF;
END IF;
END IF;
EXCEPTION
WHEN OTHERS THEN
RAISE ;
END;
-- Step 4 Issue the following ALTER command on the Parent table 'ABC'
ALTER TABLE ABC MODIFY COL1 VARCHAR2(9);
will show the following
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-30512: cannot modify DEVTESTF_OIM.REPLICA_ABC more than once in a
transaction
ORA-06512: at line 34
whereas the following commands works fine
ALTER TABLE ABC MODIFY COL1 VARCHAR2(11);
and also the rest of the operations
ALTER TABLE ABC ADD COL2 VARCHAR2(20);
ALTER TABLE ABC RENAME COLUMN COL2 TO COL3;
ALTER TABLE ABC DROP COLUMN COL3;
The issue is while reducing the size of VARCHAR2 columns, while the rest of
option works fine.
Any suggestion or workaround please.It looks like a bug to me. The failing statement from the SQL trace is
PARSE ERROR #12:len=77 dep=3 uid=0 oct=3 lid=0 tim=1263332549608656 err=30512
select /*+ first_rows */ 1 from "TIM"."REPLICA_ABC" where LENGTHB("COL1") > 9and exception cannot explain it. -
Develop query_find encountering 'FRM-41052: cannot find window: invalid ID
hi,dear all.
I 'm using forms 6i to develop query_find function.
I have Written the query_find trigger on the datablock as follows:
app_find.query_find('W_MAIN', --'Window name of Data Block'
'W_QF', --'Window Name of Query Find Block'
'B_QF'); --'Query Find Block Name'
but when I click the torch , the query_find window come out after three times of showing of the error message 'FRM-41052: cannot find window: invalid ID'. So every time I have to click three times 'OK' to close the annoying message.
Can anybody give me some guides how to realise query_find?? how to avoid this error message??
thanks in advance!set_window_property('MAIN_WINDOW', TITLE, 'PACKAGE DETAILS');
Make sure that you have a window named 'MAIN_WINDOW';
YES, I do have.
form_setup_pkg.event('WHEN-NEW-FORM-INSTANCE');
IF :PARAMETER.P_PACKING_ID is NOT NULL THEN
EXECUTE_QUERY;
END IF;
Which is the code of this package?
PACKAGE BODY FORM_SETUP_PKG IS
PROCEDURE EVENT ( i_event IN VARCHAR2 )
IS
BEGIN
Modify this package body to add events during form startup
and to modify the window name and window title
IF i_event = 'PRE-FORM' THEN
SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,WINDOW_STATE,MAXIMIZE);
SET_WINDOW_PROPERTY('BLOCKNAME',WINDOW_STATE,MAXIMIZE);
SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW, TITLE, 'GEMS');
set_window_property('BLOCKNAME', TITLE, 'Template Form');
ELSIF i_event = 'WHEN-NEW-FORM-INSTANCE' THEN
null;
ELSE
null;
END IF;
END EVENT;
END;
SELECT ORDER_NUMBER,CLIENT,QUANTITY,PACKING_ID,LETTER_ORDER_CODE,
ACTUAL_CARRIER,LETTER_ORDER_NUMBER,ACTUAL_SHIPMENT_TYPE,WEIGHT,PACKAGE_NUMBER FROM PACKING WHERE CLIENT = :1
Where you set field client?
This is my code I am not selecting client anywhere, I dont know from where "Display error" is fecthing client query.
Thanks a lot for your help.
PACKAGE BODY ORDERS IS
PROCEDURE post_query IS
BEGIN
SELECT pa.ship_to_last_name,
pa.ship_to_first_name,
pa.ship_to_address1,
pa.letter_order_number,
pa.letter_order_code,
INTO :ORDERS.SHIP_TO_LAST_NAME,
:ORDERS.SHIP_TO_FIRST_NAME,
:ORDERS.SHIP_TO_ADDRESS1,
:ORDERS.LETTER_ORDER_NUMBER,
:ORDERS.LETTER_ORDER_CODE,
:ORDERS.DC
FROM packing_attr pa
WHERE pa.packing_id = :ORDERS.PACKING_ID;
end post_query;
END orders;
Thanks
Sandy -
ORA-31167: XML nodes over 64K in size cannot be inserted -rdbms 10.2.0.4
Hi.
trying to load large XML onto a 10.2.0.4 database - using sqlldr. The logfile shows:
Record 1: Rejected - Error on table LOAD_BS_XML.
ORA-31167: XML nodes over 64K in size cannot be inserted
ORA-06512: at "SYS.XMLTYPE", line 5
My XSD:
<xs:element name="Orders" minOccurs="0" maxOccurs="unbounded">
<xs:element name="Picture" type="xs:base64Binary" minOccurs="0" xdb:SQLType="BLOB"/>
..Is there a way to circumvent this limit - without upgrading to 11gR2?
/Claus
Edited by: user500977 on Dec 6, 2011 8:41 AM
Edited by: user500977 on Dec 6, 2011 8:42 AM
Edited by: user500977 on Dec 6, 2011 8:43 AMHello,
I am also running into this problem using and Oracle 10.1.0.5 version of the database. Unfortunately I do not see our customer updating their version in the near future.
I am inserting customer data into a table with an XMLType column. There is currently no problem with inserting the data and as far as I can tell this data is not being truncated. However, when fetching this data I get the ORA-31167 error. It seems that when I execute the parser to fetch, using the extractvalue method to sort the result set based on nodes in the XMLType column.
My solutions seem limited as I must present the data in a user defined order, I can not change the content of the XML and the customer will not be updating their version of oracle soon. Is there another way around this problem ? -
The full error is: There was an error opening this document. The file size exceeds the limit allowed and cannot be saved.
I didn't think Reader had a size limit? The file is only a couple of hundred MB.
Does anyone have an idea what could be causing this error?
-Richard.Is that an online document, or a local one?
If online, see http://answers.microsoft.com/en-us/windows/forum/windows_xp-hardware/error-0x800700df-the- file-size-exceeds-the-limit/d208bba6-920c-4639-bd45-f345f462934f -
HELP !!! "Cannot modify the user entry because no matching user was found"
I have read all I have found about ISW (identity synchronization for windows).
However I keep bumping into this exact same problem. I am desperate since I cannot seem to
figure out the cause. Can someone please help a very desperate person ??
On the AD side the user test5 resides in an OU called "Admin Users". Even if I add test5 into the windows OU of people it still does not work.
Solaris 10, update 8
Directory Server 6.3.1 (DS)
Identity Manager 8.1.0 (IDM)
System Identity Synchronization for Windows 6.0
MySql 5.1.41 (CE)
/// Warning message
[28/Dec/2009:10:47:18.197 -0500] WARNING 19 CNN101 idmserver "Cannot modify the user entry because no matching user was found, action=Type: MODIFY SUL: SUL1 {Data Attrs: [REPL unicodepwd: ****]} {Other Attrs: cn: test five nsuniqueid: df2cb501-ef1e11de-8029a367-1c30f1b6 objectclass: top, person, organizationalPerson, inetorgperson, account, posixAccount, shadowAccount, machineuser, dspswuser dn: uid=test5,ou=people,dc=host,dc=company,dc=com changenumber: 27323}." (Action ID=CNN100-125D5CFBF36-13600, SN=5)
/// SUL definition
Sun Java System=> Directory source: dc=host,dc=company,dc=com Base DN: dc=host,dc=company,dc=com
Windows => Directory source: host.company.com Base DN: dc=host,dc=company,dc=com
/// unix ldap information
root@idmserver /: ldaplist -l passwd test5
dn: uid=test5,ou=people,dc=host,dc=company,dc=com
givenName: test
sn: five
loginShell: /bin/bash
machinegroup: admin
uidNumber: 1427
gidNumber: 10
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
objectClass: account
objectClass: posixAccount
objectClass: shadowAccount
objectClass: machineuser
objectClass: dspswuser
uid: test5
gecos: test five
cn: test five
homeDirectory: /net/host/vol/vol1/home/test5
userPassword: {crypt}SQDp2i8F9mAyc
// AD windows ldap information
Dn: CN=test five,OU=Admin Users,DC=host,DC=company,DC=com
objectClass: top; person; organizationalPerson; user;
cn: test five;
sn: five;
givenName: test;
distinguishedName: CN=test five,OU=Admin Users,DC=host,DC=company,DC=com;
instanceType: 0x4 = ( IT_WRITE );
whenCreated: 12/28/2009 16:46:55 Eastern Standard Time Eastern Daylight Time;
whenChanged: 12/28/2009 17:29:52 Eastern Standard Time Eastern Daylight Time;
displayName: test five;
uSNCreated: 36921;
memberOf: CN=Domain Admins,CN=Users,DC=host,DC=company,DC=com;
uSNChanged: 36935;
name: test five;
objectGUID: 1210235b-61b4-4fd8-bc4b-7455d1e31554;
userAccountControl: 0x200 = ( UF_NORMAL_ACCOUNT );
badPwdCount: 0;
codePage: 0;
countryCode: 0;
homeDirectory: \\server\profile$\test5\home;
homeDrive: H:;
badPasswordTime: 01/01/1601 00:00:00 UNC ;
lastLogoff: 01/01/1601 00:00:00 UNC ;
lastLogon: 01/01/1601 00:00:00 UNC ;
pwdLastSet: 01/01/1601 00:00:00 UNC ;
primaryGroupID: 513;
profilePath: \\server\profile$\test5\profile;
objectSid: S-1-5-21-2511962931-1144655276-2379676629-1153;
adminCount: 1;
accountExpires: 09/14/30828 02:48:05 UNC ;
logonCount: 0;
sAMAccountName: test5;
sAMAccountType: 805306368;
objectCategory: CN=Person,CN=Schema,CN=Configuration,DC=host,DC=company,DC=com;
Edited by: mightbe on Dec 30, 2009 8:22 AMHi,
This might be a stupid question but what happens when you perform a recon against AD? Once complete does the index list the account as confirmed, unknown etc?
Ant. -
925: Cannot create data store semaphores (Invalid argument)
I'm trying to connect to Timesten, but I'm getting this error.
I have looked at other similar discussions, but yet I could not solve the problem.
[timesten@atd info]$ ttisql "dsn=tpch"
Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
Type ? or "help" for help, type "exit" to quit ttIsql.
connect "dsn=tpch";
925: Cannot create data store semaphores (Invalid argument)
703: Subdaemon connect to data store failed with error TT925
The command failed.
Done.
Here is my information.
[tpch]
Driver=/home_sata/timesten/TimesTen/tt1122/lib/libtten.so
DataStore=/home_sata/timesten/TimesTen/tt1122/tpch/tpch
LogDir=/home_sata/timesten/TimesTen/tt1122/tpch/logs
PermSize=1024
TempSize=512
PLSQL=1
DatabaseCharacterSet=US7ASCII
kernel.sem = 400 32000 512 5029
kernel.shmmax=68719476736
kernel.shmall=16777216
[timesten@atd info]$ cat /proc/meminfo
MemTotal: 297699764 kB
MemFree: 96726036 kB
Buffers: 582996 kB
Cached: 155831636 kB
SwapCached: 0 kB
Active: 115729396 kB
Inactive: 78767560 kB
Active(anon): 44040440 kB
Inactive(anon): 8531544 kB
Active(file): 71688956 kB
Inactive(file): 70236016 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 112639992 kB
SwapFree: 112639992 kB
Dirty: 160 kB
Writeback: 0 kB
AnonPages: 38082348 kB
Mapped: 15352480 kB
Shmem: 14489676 kB
Slab: 3993152 kB
SReclaimable: 3826768 kB
SUnreclaim: 166384 kB
KernelStack: 18344 kB
PageTables: 245352 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 261457104 kB
Committed_AS: 74033552 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 903384 kB
VmallocChunk: 34205870424 kB
HardwareCorrupted: 0 kB
AnonHugePages: 35538944 kB
HugePages_Total: 32
HugePages_Free: 32
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 6384 kB
DirectMap2M: 2080768 kB
DirectMap1G: 299892736 kB
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 67108864
max total shared memory (kbytes) = 67108864
min seg size (bytes) = 1The error message suggests that the system is running out of semaphores although plenty seem to be configured:
kernel.sem = 400 32000 512 5029
Could it be that there are other programs on this machine as this user using semaphores?
Have you made changes to the kernel parameters and haven't made them permanent with
# /sbin/sysctl -p
or a re-boot?
If you've done a # /sbin/sysctl -p have you recycled the TT daemon
$ ttDaemonAdmin -restart
So TT takes up the new settings?
Tim -
FRM - 41219 CANNOT FIND REPORT INVALID ID - CALLING REPORT FROM FORM
I am using Developer Suite 10g (forms 9i, reports 9i) . windows XP.
I am using the following code in WHEN-BUTTON-PRESSED-PRESSED trigger in form to call report.
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status varchar2(20);
BEGIN
repid := find_report_object('C:\EMP.RDF');
v_rep := RUN_REPORT_OBJECT(repid);
END;
as as result It is displaying FRM - 41219 CANNOT FIND REPORT INVALID ID.
I have used the EMP.JSP also in find_report_object built-in. But there is no difference.
what could be the reason - plz give the solution.
with thanks
by GMSUnless you made a mistake and overlooked it, what I suggested should work. Having said that, you did not mention the exact Forms version you are using. There may have been a problem in the version you are using which was corrected in a later release. I tested the example I offered using Forms 10.1.2.3 and it works correctly. Carefully review what you did. Verify that the file actually exists in the file system. Also, I would recommend renaming the file with all lower case letters and referencing it in the form with all lower case letters. Here is the complete code of the form I tested. I will also include the property values from the Report object.
Report1 settings:
Name - REPORT1
Subclass Information -
Comments -
Filename - dummy.rdf
Execution Mode - Batch
Communication Mode - Synchronous
Data Source Data Block - <Null>
Query Name -
Report Destination Type - File
Report Destination Name -
Report Destination Format -
Report Server -
Other Reports Parameters - On the form create the following items in BLOCK1:
Text fields:
<li>SERVERNAME
<li>REPNAME
<li>OTHERPARAMS
Button:
<li>CALL_REP
In the WHEN-BUTTON-PRESSED trigger add this code:
Declare
repid REPORT_OBJECT;
v_rep varchar2(256);
rep_status varchar2(256);
Begin
repid := find_report_object('REPORT1');
-- Set Report Object properties
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, CACHE);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESFORMAT, 'HTML');
-- Comm mode 1 = SYNCHRONOUS
-- Comm mode 2 = ASYNCHRONOUS
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, 1);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_SERVER, :block1.SERVERNAME);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME, :block1.REPNAME);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,:block1.otherparams);
SYNCHRONIZE;
-- Run report and get status
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := report_object_status(v_rep);
SYNCHRONIZE;
-- Wait for Reports to generate results
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
SYNCHRONIZE;
-- If DESTYPE is appropriate for displaying to user, execute WEB.SHOW ;
IF rep_status = 'FINISHED' THEN
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||:block1.SERVERNAME,'_blank');
ELSE
message(rep_status);
END IF;
END; When you run the form, enter the Report Server name and the Report filename (include the path if you have not configured REPORTS_PATH). Then click on the button. Note that the substr logic may need to be altered slightly if you are using an old version of Forms/Reports.
. -
Error says: Warning: Cannot modify header information
I keep receiving an error message after my form is sent (the form still send the information I need just wont re-direct to the next page)
It redirects to a page that says:
Warning: Cannot modify header information - headers already sent by (output started at /home/tommyle/public_html/newp.php:10) in /home/tommyle/public_html/newp.php on line 41
my php code looks like this:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Tommy Lemonade Beta</title>
<link href="style1.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php
/* Set e-mail recipient */
$myemail = "profiles@tommylemonade";
/* Check all form inputs using check_input function */
$name = check_input($_POST['name'], "Enter your name");
$subject = check_input($_POST['subject'], "Enter a subject");
$email = check_input($_POST['email']);
$message = check_input($_POST['message'], "Write your message");
/* If e-mail is not valid show error message */
if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email))
show_error("E-mail address not valid");
/* Let's prepare the message for the e-mail */
$message = "
Name: $name
E-mail: $email
Subject: $subject
Message:
$message
/* Send the message using mail() function */
mail($myemail, $subject, $message);
/* Redirect visitor to the thank you page */
header('Location: thanks.html');
exit();
/* Functions we used */
function check_input($data, $problem='')
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
if ($problem && strlen($data) == 0)
show_error($problem);
return $data;
function show_error($myError)
?>
<html>
<body>
<p>Please correct the following error:</p>
<strong><?php echo $myError; ?></strong>
<p>Hit the back button and try again</p>
</body>
</html>
<?php
exit();
?>
</body>
</html>
This is line 41:
header('Location: thanks.html');
Can anybody see what I'm missing?Yeah, rework the code so you don't get any output before the php code is executed (like below):
<?php
/* Set e-mail recipient */
$myemail = "profiles@tommylemonade";
/* Check all form inputs using check_input function */
$name = check_input($_POST['name'], "Enter your name");
$subject = check_input($_POST['subject'], "Enter a subject");
$email = check_input($_POST['email']);
$message = check_input($_POST['message'], "Write your message");
/* If e-mail is not valid show error message */
if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email))
show_error("E-mail address not valid");
/* Let's prepare the message for the e-mail */
$message = "
Name: $name
E-mail: $email
Subject: $subject
Message: $message
/* Send the message using mail() function */
mail($myemail, $subject, $message);
/* Redirect visitor to the thank you page */
header('Location: thanks.html');
exit();
/* Functions we used */
function check_input($data, $problem='')
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
if ($problem && strlen($data) == 0)
show_error($problem);
return $data;
function show_error($myError)
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Tommy Lemonade Beta</title>
<link href="style1.css" rel="stylesheet" type="text/css">
</head>
<body>
<p>Please correct the following error:</p>
<strong><?php echo $myError; ?></strong>
<p>Hit the back button and try again</p>
</body>
</html>
<?php
exit();
?>
Maybe you are looking for
-
I have several links that are attached to PDF's. These links work fine in IE, but in Firefox I get an error message saying "cannot use Adobe Reader to view PDF in your web browser. Reader will now exit." Can anyone tell me if I have my links set wron
-
I just bought the iphone 4 yesterday so i really dont know much about it. the question i have is with the facebook chat is there a way for the chat to save on there. cuz i was talkin to someone and than went to the main screen and went back in when t
-
How to convert back to regular plan?
I am on a shared plan. I started the edge plan in December so I could get a new phone and the other line is not on the edge plan. How can I convert my phone back to the regular plan and not be on the edge plan anymore?
-
PXI 6602 +BNC-2121 +LabView 7.0
Hello, I am using a PXI 6602 with BNC-2121 Connector Accessory and LabView 7.1 to measure a time in a cams programmer (it is composed by a motor, cams, microswitches. The cams rotate and commutate the microswitch state). I need to use all eight count
-
I have the Adobe CS6 Design and Web Premium package and want to uninstall and reinstall PS and AI. How do I do this?