That's not what you think of "disk space". It means not enough swap, because your Java suddenly wants lots of GB of memory. When Java launches fork, it starts a new VM as a fork from current process. Thus for a short period between fork and exec, there is two instances of your stuff. That's temporary though. Exactly at this moment your system cries for a lack of swap.
2013年7月25日 星期四
2013年6月18日 星期二
Oracle: Update CLOB from file
Check file directory:
select * from dba_directories
Create directory:
create or replace directory dirName as
'c:\data';
create or replace
procedure UPDATE_CLOB
AS
or use
DECLARE
dest_clob CLOB;
src_clob BFILE := BFILENAME('xxx from dba_directories', 'data1.txt');
dst_offset number := 1 ;
src_offset number := 1 ;
lang_ctx number := DBMS_LOB.DEFAULT_LANG_CTX;
warning number;
BEGIN
DBMS_OUTPUT.ENABLE(100000);
SELECT text_value
INTO dest_clob
FROM SUBSIDY_ADMINISTRATION_SETTING
WHERE setting_id = 'test1'
FOR UPDATE;
DBMS_OUTPUT.PUT_LINE('dest_clob' || dest_clob);
DBMS_LOB.OPEN(src_clob, DBMS_LOB.LOB_READONLY);
DBMS_OUTPUT.PUT_LINE('length: ' || DBMS_LOB.GETLENGTH(src_clob));
DBMS_OUTPUT.PUT_LINE('length: ' || lang_ctx);
DBMS_LOB.LoadCLOBFromFile(
DEST_LOB => dest_clob
, SRC_BFILE => src_clob
, AMOUNT => DBMS_LOB.GETLENGTH(src_clob)
, DEST_OFFSET => dst_offset
, SRC_OFFSET => src_offset
, BFILE_CSID => DBMS_LOB.DEFAULT_CSID
, LANG_CONTEXT => lang_ctx
, WARNING => warning
);
UPDATE SUBSIDY_ADMINISTRATION_SETTING set text_value= dest_clob
WHERE setting_id = 'test1';
DBMS_LOB.CLOSE(src_clob);
COMMIT;
DBMS_OUTPUT.PUT_LINE('Loaded File using DBMS_LOB.LoadCLOBFromFile: (ID=1001).');
END;
2013年4月22日 星期一
Oracle: Cannot connect
Remember setup
export ORACLE_HOME=/oracle/11g/product/11.2.0
export ORACLE_SID=F87DEV
export ORACLE_HOME=/oracle/11g/product/11.2.0
export ORACLE_SID=F87DEV
2013年2月26日 星期二
Install WebCenter 11.1.1.6 on Linux
Prepare linux.
Remember register linux:
yum install glibc.i686
yum install xorg-x11-apps
xhost +localhost.localdomain
(xhost +computer name)
[reference also:
Remember register linux:
yum install glibc.i686
yum install xorg-x11-apps
xhost +localhost.localdomain
(xhost +computer name)
[reference also:
other usefull yum(1) commands:
yum provides '*/xclock'
yum grouplist
yum groupinstall 'X Window System'
]
SQL Server: Restore from file
RESTORE DATABASE PSIWebV3
FROM DISK = 'C:\temp\PSIWebV3.dat'
WITH REPLACE
2012年9月12日 星期三
SharePoint 2010: Remove solution wsp from Central Administration
To deploy a solution by using Central Administration
1.On the Central Administration Home page, click System Settings.
2.In the Farm Management section, click Manage farm solutions.
3.On the Solution Management page, click the solution that you want to deploy.
4.On the Solution Properties page, click Deploy Solution.
5.On the Deploy Solution page, in the Deploy When section, select one of the following:
1.On the Central Administration Home page, click System Settings.
2.In the Farm Management section, click Manage farm solutions.
3.On the Solution Management page, click the solution that you want to deploy.
4.On the Solution Properties page, click Deploy Solution.
5.On the Deploy Solution page, in the Deploy When section, select one of the following:
2012年9月11日 星期二
admin.aspx Failed to generate a user instance of SQL server due to failure in retrieving the user's local application data path app_data When move SQL server Express to SQL Server
When moving from SQL Server EXPRESS to SQL Server and then go to admin.aspx, the error happened:
Failed to generate a user instance of SQL server due to failure in retrieving the user's local application data path app_data
SOLUTION:
Failed to generate a user instance of SQL server due to failure in retrieving the user's local application data path app_data
SOLUTION:
- Go to IIS 7.
- Click on the site.
- Double click on Connection Strings. Change the SocalSqlServerr value to new one.
2012年9月4日 星期二
Windows server 2008: the password does not meet the password policy requirements
To disable password policy:
Administrative tools ==> Local Security Policy
==> Account policies ==> Password Policy ==> disable the password complexity check.
Administrative tools ==> Local Security Policy
==> Account policies ==> Password Policy ==> disable the password complexity check.
2012年9月3日 星期一
Login failed for user 'IIS APPPOOL\ASP.NET v4.0'
Web site connection fail on trying to open a connection to SQL Server.
Add a login to SQL Server for
IIS APPPOOL\ASP.NET v4.0
and grant permissions to the database.
In SSMS, under the server, expand Security, then right click Logins and select "New Login...".
In the New Login dialog, enter the app pool as the login name and click "OK".
You can then right click the login for the app pool, select Properties and select "User Mapping". Check the appropriate database, and the appropriate roles. I think you could just select
db_datareader
anddb_datawriter
, but I think you would still need to grant permissions to execute stored procedures if you do that through EF.Oracle: Run Stored procedure with parameter and output
On SQL Developer:
SET serveroutput on;
variable f NUMBER;
execute user.package_name.procedure_name('parameter1', parameter2, :f);
print :f;
SET serveroutput on;
variable f NUMBER;
execute user.package_name.procedure_name('parameter1', parameter2, :f);
print :f;
訂閱:
文章 (Atom)