Error loggin into Database and while patching
Hii
Im getting error while trying to connect to Database and while patching.
My Database 11.1.0.7 and application im upgrading frm 11.5.10.2 to 12.1.1 on windows 32 server
Following is the error im getting from alertlog file
Errors in file e:\oracle\db\tech_st\11.1.0\admin\uat_af-upg-erp\diag\rdbms\uat\uat\trace\uat_ora_1404.trc (incident=4956):
*ORA-00600: internal error code, arguments: [qcisSetPlsqlCtx:tzi init], [], [], [], [], [], [], [], [], [], [], []*
Incident details in: e:\oracle\db\tech_st\11.1.0\admin\uat_af-upg-erp\diag\rdbms\uat\uat\incident\incdir_4956\uat_ora_1404_i4956.trc
Mon Feb 27 18:10:30 2012
Starting background process SMCO
Mon Feb 27 18:10:30 2012
SMCO started with pid=19, OS id=2424
Errors in file e:\oracle\db\tech_st\11.1.0\admin\uat_af-upg-erp\diag\rdbms\uat\uat\trace\uat_ora_1404.trc:
*ORA-00600: internal error code, arguments: [qcisSetPlsqlCtx:tzi init], [], [], [], [], [], [], [], [], [], [], []*
Completed: ALTER DATABASE OPEN
Mon Feb 27 18:10:31 2012
*Trace dumping is performing id=[cdmp_20120227181031]*
Mon Feb 27 18:10:33 2012
Errors in file e:\oracle\db\tech_st\11.1.0\admin\uat_af-upg-erp\diag\rdbms\uat\uat\trace\uat_q002_1896.trc (incident=5020):
*ORA-00600: internal error code, arguments: [qcisSetPlsqlCtx:tzi init], [], [], [], [], [], [], [], [], [], [], []*
Incident details in: e:\oracle\db\tech_st\11.1.0\admin\uat_af-upg-erp\diag\rdbms\uat\uat\incident\incdir_5020\uat_q002_1896_i5020.trc
Mon Feb 27 18:10:34 2012
Errors in file e:\oracle\db\tech_st\11.1.0\admin\uat_af-upg-erp\diag\rdbms\uat\uat\trace\uat_m002_3868.trc (incident=4996):
*ORA-00600: internal error code, arguments: [qcisSetPlsqlCtx:tzi init], [], [], [], [], [], [], [], [], [], [], []*
Incident details in: e:\oracle\db\tech_st\11.1.0\admin\uat_af-upg-erp\diag\rdbms\uat\uat\incident\incdir_4996\uat_m002_3868_i4996.trc
*Trace dumping is performing id=[cdmp_20120227181034]*
Errors in file e:\oracle\db\tech_st\11.1.0\admin\uat_af-upg-erp\diag\rdbms\uat\uat\trace\uat_m002_3868.trc (incident=4997):
*ORA-00600: internal error code, arguments: [qcisSetPlsqlCtx:tzi init], [], [], [], [], [], [], [], [], [], [], []*
Incident details in: e:\oracle\db\tech_st\11.1.0\admin\uat_af-upg-erp\diag\rdbms\uat\uat\incident\incdir_4997\uat_m002_3868_i4997.trc
*Trace dumping is performing id=[cdmp_20120227181035]*
Errors in file e:\oracle\db\tech_st\11.1.0\admin\uat_af-upg-erp\diag\rdbms\uat\uat\trace\uat_m002_3868.trc:
*ORA-00600: internal error code, arguments: [qcisSetPlsqlCtx:tzi init], [], [], [], [], [], [], [], [], [], [], []*
*Trace dumping is performing id=[cdmp_20120227181036]*
Mon Feb 27 18:11:00 2012
Mon Feb 27 18:11:00 2012
Errors in file e:\oracle\db\tech_st\11.1.0\admin\uat_af-upg-erp\diag\rdbms\uat\uat\trace\uat_ora_3760.trc (incident=4998):
*ORA-00600: internal error code, arguments: [qcisSetPlsqlCtx:tzi init], [], [], [], [], [], [], [], [], [], [], []*
Incident details in: e:\oracle\db\tech_st\11.1.0\admin\uat_af-upg-erp\diag\rdbms\uat\uat\incident\incdir_4998\uat_ora_3760_i4998.trc
Mon Feb 27 18:11:01 2012
*Trace dumping is performing id=[cdmp_20120227181101]*
Mon Feb 27 18:11:13 2012
Sweep Incident[5020]: completed
Sweep Incident[4998]: completed
Sweep Incident[4997]: completed
Sweep Incident[4996]: completed
Sweep Incident[4956]: completed
Mon Feb 27 18:30:19 2012
Incremental checkpoint up to RBA [0x1c64.1a77.0], current log tail at RBA [0x1c64.1d76.0]
Can anyone proivde me a solution for this ASAP, as im not able to apply the patch and not able to upgrade
Waiting for your replies soon
Thanks in advance.
Errors in file e:\oracle\db\tech_st\11.1.0\admin\uat_af-upg-erp\diag\rdbms\uat\uat\trace\uat_ora_1404.trc (incident=4956):
*ORA-00600: internal error code, arguments: [qcisSetPlsqlCtx:tzi init], [], [], [], [], [], [], [], [], [], [], []*Please see (ORA-600 [qcisSetPlsqlCtx:tzi init] [ID 1267717.1]). If the doc does not help, please log a SR and upload all the log/trace files to Oracle Support.
Thanks,
Hussein
Similar Messages
-
LOADING x12 834 data into database and 999 generation for received x12 file
Hi All,
I'm New to BizTalk, Im using BizTalk 2010 developer edition....I need to load the x12 834 enrollment data (few details) into database. I want to know the step by step procedure to do this. kindly help me.
Also i need to know the 999 ackknowledgement generation for the received x12 file
Thanks in advance.
RengarajYou need to Generate individual 834 enrollment message through de batching in EDIReceive pipeline .
Once you get disassembled message you need map it with insert stored procedure schema for inserting data in to SQL .
For this first you need to create a table in SQL server with required columns and create a simple stored procedure to insert data in to Table . Use Add Generate Item --> consume adapter service-->SQL binding -->Outbound operation and then
select the Stored Procedure created to generate schema for it . Use the same schema while mapping from Debatched EDI message to SQL stored Procedure request.
Thanks
Abhishek -
Urgent : how to put an image into database and how to get it from it?
hi,
in the database i made a longblob type for image, and in my java code i have the path of the image (String): "C:\............." and i want to put this image in my data base.
also i want to know how to get the image after put it in the database.
please help me, it's so urgent.This is a way of getting the image out of the database.
class yourClass{
private byte[] buff;
private ByteArrayOutputStream byteArrayOutputStream;
public yourClass()
Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
ResultSet result = statement.executeQuery("your query");
while ( result.next()){
try{
BufferedInputStream bin = new BufferedInputStream(rs.getBinaryStream("imagecolumn"));
byteArrayOutputStream = new ByteArrayOutputStream();
int length = bin.available();
buff = new byte[length];
while ( bin.read( buff, 0, length ) != -1 ) {
byteArrayOutputStream.write( buff, 0, length );
bin.close();
catch(Exception e){
The class about is used to take the image out of the database and store it in an object which is then streamed out through a servlet to display on the jsp page.
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.sql.*;
public class ImageServlet extends HttpServlet {
public void init() throws ServletException { }
public void destroy() { }
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try
yourClass pro = (yourClass)request.getSession().getAttribute("object");
while ( iterator.hasNext() ) {
pro = ( Product ) iterator.next();
response.setContentType("image/jpg");
ByteArrayOutputStream byteArrayOutputStream = pro.getImage();
response.setContentLength( byteArrayOutputStream.size() );
response.getOutputStream().write( byteArrayOutputStream.toByteArray() );
response.getOutputStream().flush();
return;
catch (Exception e)
e.printStackTrace();
throw new ServletException(e);
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doGet(request, response);
This is a little messy but if you search the forums you will find out more on it. Search for Images and database. -
Error while Loggin into Database
Hello,
As i am entering my username & password m getting an Error..
" ORA-01033: ORACLE initialization or shutdown in progress "
Then i found few suggestions related to this error .. & some steps to rectify this.. & the Result i got is ..
C:\>sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Dec 15 14:34:25 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect sys/manager as sysdba
Connected.
SQL>
SQL> shutdown immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL>
SQL>
SQL> startup
ORACLE instance started.
Total System Global Area 251658240 bytes
Fixed Size 1248380 bytes
Variable Size 83886980 bytes
Database Buffers 163577856 bytes
Redo Buffers 2945024 bytes
Database mounted.
ORA-01172: recovery of thread 1 stuck at block 59 of file 2
ORA-01151: use media recovery to recover block, restore backup if needed.
i am very new to this ... please suggest me some solutionAijaz Mallick wrote:
Hello Robert,
Can you plz give me the steps for recovering datafile 2.. i am very new to thisRobert has already given you the command :)
It's RMAN command. If you have taken RMAN backup of the database, you will be able to recover that file using that command :
RMAN>RECOVER DATAFILE 2;- - - - - - - - - - - - - - - - - - - - -
[Kamran Agayev A. |http://kamranagayev.wordpress.com] (OCP 9i/10g)
Author of *"Oracle Backup & Recovery: Expert secrets for using RMAN and Data Pump"*
http://www.rampant-books.com/book_1002_rman_backup_recovery.htm -
need help,am tryin to insert data into my database which contains date,
names,phone,address and deposit and it's giving this error message:
java.lang.ClassCastException:java.util.Date cannot be cast to java.sql.Date.
somebody help me please.thanks in advance.
code:
'\n'
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
import java.text.*;
public class NewCustomerRecord extends JFrame{
private JTextField firstnameF,othernameF,phoneF,addressF,depositF,currentF,dateF;
private JButton registerbutton;
private Connection con;
private Statement st;
private ResultSet set;
private PreparedStatement stat;
public NewCustomerRecord(){
//super(f,"",true);
JPanel panel = new JPanel();
panel.setLayout(null);
JLabel firstL = new JLabel("First Name:");
firstL.setBounds(5,15,80,20);
panel.add(firstL);
firstnameF = new JTextField();
firstnameF.setBounds(70,15,100,20);
panel.add(firstnameF);
JLabel otherL = new JLabel("Other Names:");
otherL.setBounds(175,15,80,20);
panel.add(otherL);
othernameF = new JTextField();
othernameF.setBounds(255,15,100,20);
panel.add(othernameF);
JLabel phoneL = new JLabel("Phone No.:");
phoneL.setBounds(5,40,80,20);
panel.add(phoneL);
phoneF = new JTextField();
phoneF.setBounds(70,40,100,20);
panel.add(phoneF);
JLabel addressL = new JLabel("Address:");
addressL.setBounds(185,40,80,20);
panel.add(addressL);
addressF = new JTextField();
addressF.setBounds(255,40,100,20);
panel.add(addressF);
JLabel depositL = new JLabel("Deposit:");
depositL.setBounds(5,65,60,20);
panel.add(depositL);
depositF = new JTextField();
depositF.setBounds(70,65,100,20);
panel.add(depositF);
/*JLabel currentL = new JLabel("Current Bill:");
currentL.setBounds(135,65,80,20);
panel.add(currentL);
currentF = new JTextField();
currentF.setBounds(205,65,50,20);
panel.add(currentF);*/
JLabel dateL = new JLabel("Date:");
dateL.setBounds(185,65,50,20);
panel.add(dateL);
dateF = new JTextField();
dateF.setBounds(255,65,100,20);
panel.add(dateF);
registerbutton = new JButton("Register Customer");
registerbutton.setBounds(115,100,145,20);
registerbutton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
insertRecord();
dispose();
registerbutton.setMinimumSize(new Dimension(50,20));
panel.add(registerbutton);
add(panel);
setSize(400,200);
setDefaultCloseOperation(EXIT_ON_CLOSE);
public void insertRecord(){
double bal=0.0;
String s=depositF.getText();
double dep = Double.parseDouble(s);
bal+=dep;
//String ss=dateF.getText();
//short dd=Short.parseShort(ss);
String ss=Double.toString(dep);
String bb=Double.toString(bal);
String fullName=firstnameF.getText()+"\t"+othernameF.getText();
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:sparkletransaction","","");
SimpleDateFormat sdf = new SimpleDateFormat("dd/mm/yy"); //added
Date d = (Date)sdf.parse(dateF.getText());
//java.sql.Date date = new java.sql.Date();
//date.setTime(d.getTime());
String insert="INSERT INTO personaltransaction(date,name,phone,addres,deposit,balance) VALUES(?,?,?,?,?,?)";
//insert=insert+;
stat=con.prepareStatement(insert);
stat.setDate(1,d);
stat.setString(2,fullName);
stat.setString(3,phoneF.getText());
stat.setString(4,addressF.getText());
stat.setString(5,ss);
stat.setString(6,bb);
stat.executeUpdate();
stat.close();
catch(Exception e){
System.out.println(e);
public static void main(String[] arg){
new NewCustomerRecord().setVisible(true);
}java.lang.ClassCastException:java.util.Date cannot be
cast to java.sql.Date.
Hint:
public static java.sql.Date convert2SqlDate(java.util.Date date) {
return new java.sql.Date(date.getTime());
} -
Error in Create Database Instance while installing NW_JAVA_700SP14_SR3
hi frds
i am getting an error while installing NW_JAVA_700SP14_SR3
the error comes in the Step 13 Create Database Instance
the details are
> Subprocess starts at 20080627004121
Execute Command : C:\sapdb\programs\pgm\dbmcli.exe -n Trust_In_ME -d J2E -u CONTROL,******** load_systab -u SUPERDBA,******** -ud ********
Execute Session Command : exit
> Subprocess stops at 20080627004147
> Subprocess call failed
ERR
-24964,ERR_EXECUTE: error in program execution
3,""C:\sapdb\J2E\db\bin\x_python" "C:\sapdb\J2E\db\env\lsystab.py" -R "C:\sapdb\J2E\db" -d J2E -u SUPERDBA,********
Removing obsolete objects
Installing Loader tables
Installing messages and help
Installing SYSDBA tables
Installing comments for SYSDBA tables
Installing precompiler tables
Installing system tables for R3 backup information
Installing ODBC tables
Traceback----
File "C:\sapdb\J2E\db\env\installib.py", line 401, in connectAndInstall
installRoutine (session, options)
File "C:\sapdb\J2E\db\env\lsystab.py", line 190, in install
"DBANA"
File "C:\sapdb\J2E\db\env\installib.py", line 163, in include
install (session, options)
File "C:\sapdb\J2E\db\env\ODBC.py", line 111, in install
Command----
DATALOAD TABLE BASETYPES
"TYPE_NAME" 1
"DATA_TYPE" 2
"PRECISION" 3 DEFAULT NULL
"LITERAL_PREFIX" 4 DEFAULT NULL
"LITERAL_SUFFIX" 5 DEFAULT NULL
"CREATE_PARAMS" 6 DEFAULT NULL
"NULLABLE" 7
"CASE_SENSITIVE" 8
"SEARCHABLE" 9
"UNSIGNED_ATTRIBUTE" 10 DEFAULT NULL
"MONEY" 11
"AUTO_INCREMENT" 12 DEFAULT NULL
"LOCAL_TYPE_NAME" 13 DEFAULT NULL
"MINIMUM_SCALE" 14 DEFAULT NULL
"MAXIMUM_SCALE" 15 DEFAULT NULL
"SQL_DATA_TYPE" 16
"SQL_DATETIME_SUB" 17 DEFAULT NULL
"NUM_PREC_RADIX" 18 DEFAULT NULL
"INTERVAL_PRECISION" 19 DEFAULT NULL
"REMARKS" 20 DEFAULT NULL
INFILE 'c:\docume1\mehta's\locals1\temp\tmpnxyvvp'
COMPRESSED
SEPARATOR '|'
DELIMITER ''
Error----
loader.LoaderError: [-25501] Error opening file ''c:\docume1\mehta's\locals1\temp\tmpnxyvvp'': OS error: [123].
can anyone help me to resolve this issue
Regards
JMHello John,
some basics:
1. Is the drive formatted with NTFS?
2. Are you using an local or domain user?
3. Are there any antivirus- and/or firewall-programs installed? If so, please deactivate them while installing.
4. Is the computer connected to an network or if not did you install the loopback-adapter?
Regards,
Norman Schröder -
Error in Computing Database statistics while running Update optimizer stati
Dear All,
I am getting following error while executing Update optimizer statistics on my ECC Production Server.
BR0280I BRCONNECT time stamp: 2011-09-07 06.00.34
BR0815I Number of indexes in schema of owner SAPFEP: 82458
BR0815I Number of indexes in schema of owner SAPFEPDB: 403
BR0825E Table/Index '/SAPAPO/MATKEY' not found in database
BR0182E Checking parameter/option 'stats_dbms_stats' failed
BR0806I End of BRCONNECT processing: cegskeaq.sta 2011-09-07 06.00.34
BR0280I BRCONNECT time stamp: 2011-09-07 06.00.34
BR0804I BRCONNECT terminated with errors
You are requested to please suggest the corrective action.
Regards,
Manish SachanHiu2026u2026u2026
Please find the complete Log u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
BR0801I BRCONNECT 7.00 (34)
BR0805I Start of BRCONNECT processing: cegxrutc.sta 2011-10-05 06.00.16
BR0484I BRCONNECT log file: /oracle/FEP/sapcheck/cegxrutc.sta
BR0101I Parameters
Name Value
oracle_sid FEP
oracle_home /oracle/FEP/102_64
oracle_profile /oracle/FEP/102_64/dbs/initFEP.ora
sapdata_home /oracle/FEP
sap_profile /oracle/FEP/102_64/dbs/initFEP.sap
system_info fepadm/orafep fjeccprd1 AIX 3 5 00F67F154C00
oracle_info FEP 10.2.0.2.0 8192 114671 3007543000 fjeccprd1 UTF8 UTF8
sap_info 700 SAPFEP 0002LK0003FEP0011H01500816140015Maintenance_ORA
make_info rs6000_64 OCI_102 May 31 2008
command_line brconnect -u / -jid STATS20080725060000 -c -f stats -t ALL
stats_table ALL
stats_dbms_stats ALL:R:2,/SAPAPO/MATKEY:B:3
stats_change_threshold 50
stats_parallel_degree 1
BR0280I BRCONNECT time stamp: 2011-10-05 06.00.27
BR0813I Schema owners found in database FEP: SAPFEP*, SAPFEPDB%
BR0280I BRCONNECT time stamp: 2011-10-05 06.00.37
BR0814I Number of tables in schema of owner SAPFEP: 68904
BR0836I Number of info cube tables found for owner SAPFEP: 93
BR0814I Number of tables in schema of owner SAPFEPDB: 264
BR0280I BRCONNECT time stamp: 2011-10-05 06.00.47
BR0815I Number of indexes in schema of owner SAPFEP: 82459
BR0815I Number of indexes in schema of owner SAPFEPDB: 403
BR0825E Table/Index '/SAPAPO/MATKEY' not found in database
BR0182E Checking parameter/option 'stats_dbms_stats' failed
BR0806I End of BRCONNECT processing: cegxrutc.sta 2011-10-05 06.00.47
BR0280I BRCONNECT time stamp: 2011-10-05 06.00.47
BR0804I BRCONNECT terminated with errors
Regards,
Manish Sachan -
I want to store an xml file into database, and transport it to the XI.
tell me in how many ways we can store a xml file in database.
one i know is.- create a table with field same as that of XML. store XML file data in it
and at the time of transfering data to XI fatch data from table and create an XML file and transfer...
tell me if u know some moreDear Swethi,
You can move images to SAP using SE78. then u can use them where ever u you require them.
SE78->GRAPHICS->BMAP here give ur image name and click on save
Rgds,
Kiran
Edited by: Kiran on Jun 11, 2009 7:15 AM -
Hi every one, i have prob with this code
import java.security.NoSuchAlgorithmException;
import java.sql.Blob;
import java.sql.ResultSet;
import javax.crypto.KeyGenerator;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.SecretKey;
import java.security.Key;
import java.io.*;
import java.security.InvalidKeyException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
public class SecurityUtil {
public static final String ALGORITHM ="DES";
public static Cipher cipher;
SecurityUtil() throws NoSuchAlgorithmException, NoSuchPaddingException {
cipher = Cipher.getInstance(ALGORITHM);}
public static void serializeKey(Key key, File file) {
//serializing
try { FileOutputStream fos = new FileOutputStream(file);
ObjectOutputStream oos = new ObjectOutputStream(fos);
oos.writeObject(key);
oos.flush();
oos.close(); } catch (Exception e) { System.out.println("Exception during serialization: " + e);
System.exit(0); } }
public static SecretKey deserializeKey(File file) { //deserializing
SecretKey key1 = null;
try { FileInputStream fis = new FileInputStream(file);
ObjectInputStream ois = new ObjectInputStream(fis);
key1 = (SecretKey) ois.readObject();
ois.close();
System.out.println("object2: " + key1); } catch (Exception e) {
System.out.println("Exception during deserialization: " + e);
System.exit(0);}
return key1;
public static byte[] encrypt(String input, SecretKey key) throws InvalidKeyException, BadPaddingException,
IllegalBlockSizeException {
cipher.init(Cipher.ENCRYPT_MODE, key);
byte[] inputBytes = input.getBytes();
return cipher.doFinal(inputBytes);
public static String decrypt(byte[] encryptionBytes, SecretKey key) throws InvalidKeyException,
BadPaddingException, IllegalBlockSizeException {
cipher.init(Cipher.DECRYPT_MODE, key);
byte[] recoveredBytes = cipher.doFinal(encryptionBytes);
String recovered = new String(recoveredBytes);
return recovered;
public static void main(String[] args) throws Exception {
SecurityUtil su = new SecurityUtil();
// SecurityUtil.testUsingSerialization();
SecurityUtil.testWithDatabase();
public static void testUsingSerialization() throws Exception {
KeyGenerator kg = KeyGenerator.getInstance("DES");
kg.init(56); // 56 is the keysize. Fixed for DES
SecretKey key = kg.generateKey();
File file1 = new File("root:/testKey.key");
serializeKey(key, file1);
SecretKey deserializedKey = deserializeKey(file1);
byte[] encryptionBytes = encrypt("input", key);
System.out.println("Recovered: " + decrypt(encryptionBytes, deserializedKey));
public static void testWithDatabase() throws Exception {
KeyGenerator kg = KeyGenerator.getInstance("DES");
kg.init(56); // 56 is the keysize. Fixed for DES
SecretKey key = kg.generateKey();
boolean insertResult = insert("prasunay","prasunay",key);
System.out.println("<<======= insert result: " + insertResult);
boolean validateAuthenticationDetails = validateAuthenticationDetails("prasunay","prasunay");
System.out.println("<<======= right values:" + validateAuthenticationDetails);
boolean validateAuthenticationDetails1 = validateAuthenticationDetails("prasunay","prasun");
System.out.println("<<======= WRONG values:" + validateAuthenticationDetails1);
System.out.print("done!"); }
public static boolean insert(String username,String password,SecretKey key) throws Exception {
// mysql> CREATE TABLE myusers (user_name VARCHAR(20), pass_word VARCHAR(20), my_key BLOB);
// Query OK, 0 rows affected (0.03 sec)
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection("jdbc:mysql://localhost/users?user=root&password=");
PreparedStatement ps = con.prepareStatement("INSERT INTO myusers VALUES (?, ?, ?)");
ps.setString(1,username);
byte[] encryptionBytes = encrypt(password, key);
ps.setString(2, new String(encryptionBytes));
ByteArrayInputStream ois = getStreamFromKey(key);
byte[] keyBytes = getBytesFromKey(key);
System.out.println("Key Length" + keyBytes.length);
ps.setBinaryStream(3, ois, keyBytes.length);
int result = ps.executeUpdate();
System.out.println(result);
ps.close();
con.close();
if (result > 0) {
return true;
} else {
return false; } }code continuation.......
public static boolean validateAuthenticationDetails(String username, String password) throws Exception {
boolean result = false;
// mysql> CREATE TABLE myusers (user_name VARCHAR(20), pass_word VARCHAR(20), my_key BLOB);
// Query OK, 0 rows affected (0.03 sec)
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection("jdbc:mysql://localhost/users?user=root&password=");
PreparedStatement ps = con.prepareStatement("select my_key,pass_word from myusers where user_name = ?");
ps.setString(1, username);
ResultSet resultSet = ps.executeQuery();
if (resultSet.next()) {
String passwordFromDB = resultSet.getString("pass_word");
Blob keyBlob = resultSet.getBlob("my_key");
System.out.println(keyBlob);
System.out.println("key" + resultSet.getBinaryStream("my_key").read());
InputStream keyInputBinaryStream = keyBlob.getBinaryStream();
System.out.println("keyInputBinaryStream: " + keyInputBinaryStream);
System.out.println("keyInputBinaryStream: " + keyInputBinaryStream.available());
ObjectInputStream ois = new ObjectInputStream(keyInputBinaryStream);
SecretKey key = (SecretKey) ois.readObject();
System.out.println(key);
String decryptedPwd = decrypt(passwordFromDB.getBytes(), key);
System.out.println("Decrypted pwd : " + decryptedPwd);
System.out.println("pwd sent for authorization : " + password);
if (password.equals(decryptedPwd)) {
result = true;
} else {result = false; }
} else {
System.out.println("Invalid user!!"); }
ps.close();
con.close();
return result; }
public static ByteArrayInputStream getStreamFromKey(SecretKey key) throws Exception {
ByteArrayOutputStream o = new ByteArrayOutputStream();
ObjectOutputStream out = new ObjectOutputStream(o);
out.writeObject(key);
byte[] keyBytes = o.toByteArray();
ByteArrayInputStream bis = new ByteArrayInputStream(keyBytes);
return bis;}
public static byte[] getBytesFromKey(SecretKey key) throws Exception {
ByteArrayOutputStream o = new ByteArrayOutputStream();
ObjectOutputStream out = new ObjectOutputStream(o);
out.writeObject(key);
byte[] keyBytes = o.toByteArray();
return keyBytes; } }
but it is giving following run-time error: Key Length263
1
<<======= insert result: true
com.mysql.jdbc.Blob@1ea0252
key172
keyInputBinaryStream: java.io.ByteArrayInputStream@3e89c3
keyInputBinaryStream: 263
javax.crypto.spec.SecretKeySpec@fffe7a51
Exception in thread "main" javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
plzz suggest some solution... -
Reference to database and/or server name in '' is not supported in this version of SQL Server
Hello all
I am using C# and ADO.NET (native) - Visual Studio 2013.
I am always using full qualified queries like "SELECT * FROM [database].[schema].[table]"
Obviously there is a problem when doing this against SQL Azure,
I get the following error: "Reference to database and/or server name in '' is not supported in this version of SQL Server"
Interesting fact: With SQL Management Studio, the same query works.
I need to know if this error is really a true one or not.
If yes, I can quit using SQL Azure. I would need a SQL Server and not a partial SQL Server :-)
Thanks and best regards
FrankHi,
Here are my suggestions:
1. Use partially qualified queries, because:
a. from a security standpoint, you'd want to limit your login's access across the server instance
b. in order to achieve a even better, you should specify your database as the Initial Catalog directly in the SQL Connection.
If you take into account these practices, SQL Database doesn't come with any limitation from that point of view.
However, in regard to 'With SQL Management Studio, the same query works', this is actually only partially true because if you run that query agains ADO.NET, you'll actually end up in switching databases along the query which is obviously not permitted in
SQL Database since you're running in a hosted black-box version of SQL you're not managing. It's just like running the USE <dbname> command which obviously doesn't work.
Alex -
Inserting pdf file into database
I am trying to insert a adobe pdf file into a multimedia field in my database and while I can get it to cut and past I would like it to auto size into the box that I have defined for it. I have many records to compile, thousands. Some of these pdf files have several pages and it would be nice to be able to scroll through thier content in that multimedia field box. How do I do this? Is it possible? If not I assume I am stuck with making a link that opens the file. I assume this is possible. How do I do this?
Thanks in Advance,
ShaneHello
You may enter the Layout > Layout mode to enlarge the area dedicated to the multimedia field.
But there is no provision for an autosize feature.
The link soluce is not available in databases.
I mimic it true the "enhanced database" structure requiring an AppleScript.
You may find the script on my temp iDisk or in the Peggy's one which is organised well.
Peggy's idisk
Yvan KOENIG (from FRANCE 20 octobre 2005 12:20:17) -
Inserting a MS Word document into database
Hello friends at www.oracle.com,
we need to insert contents from our Microsoft Word documents into an Oracle database. That is, we need to create a Forms program where we can open and select a MS Word file, and insert its contents into a table; for example, MS_DOCUMENTS.
Thanks, and best regards,
Franklin Gonçalves Jr.Hello Duncan,
If this is on the web then WebUtil provides
everything you need. If it's on Client Server you
can use the OLE Container item type. no, it's not on the Web.
I want to insert Word documents that are in my directories into database, and I've read that it can be done via BLOB table columns.
I'd like to insert these documents and retrieve them later. Could you please tell me something about it?
Sincere thanks for your help.
Best regards,
Franklin Goncalves Jr. -
Speed up process to create web forms that put info into database
Hi All
Basically what Im trying to ask is that I have been developing jsp pages with some javabeans to insert information into databases and then to insert/retreive this information. I have been doing this by hand and it takes time even though I have a library of beans that I have built overtime. My management wants me to deploy new forms within 30 minutes.
Current method of creating forms
==========================
1 - I make the form in dreamweaver
2- Copy and paste the code into my IDE jpadpro
3- Put in the bean connection in the jsp page and create new insert statement
4 - Create the result page
5- Ftp pages to server
I am looking to speed the process of creating new forms which connect to ms sql server (insert) information. I have already invested in crystal reports to make reports which i think has cut my development time by 10 foldes. I am looking for something similar to insert information into the databases.
If there is no such software then is there a java IDE where I can design web page forms visually (like dreamweaver/ microsoft infopath) and create the jdbc connections through wizards. I think microsofts visual studio does this, but i cant use this as i am working with j2ee with ms sql server database.
I am currently looking into eclipse with the myeclipse plugin to see if it will speed things up. Any suggestions from anyone most welcomed.
Also will JSF be better to use?
Regards
AntekCutting down development times of forms applications is probably why they created Formular (http://formular.redeye.no/ ).
In my company, we use Formular to define the data we wish to collect. We do this in XML. The XML is pretty straight forward to grasp. Formular uses this XML to generate the actual HTML form so you do not need to build several JSPs for each form you display. Formular handles multiple pages gracefully.
After building a few forms this way, you quickly learn ways to save time by establishing a library of commonly used components such as data field validators.
These are components you always end up using in many forms (such as data formating, value range checks, required checks, etc.).
The Formular package allows you to reuse those.
The other fine feature is the availability of data sources. These are classes that Formular uses to populate your forms (or example generate select lists, or radio buttons from data you have in a database or even a file).
Finally, you might be lucky to be in a position to create a single form processing model for your applications. What we have is a generic form processing class that receives data collected by Formular, and use the configuration data from the XML to determine how that data will be handled. You could for instance have a class that you call/invoke dynamically depending on how the form is configured.
I use the XML file custom parameters for this (these params and their values are invisible to the user but accessible by the generic form handler that comes with the package).
You might use these to specify the table you want that form to be posted into, and also maybe even specify exactly which fields.
For our usage, this package is of great value, and we found the licensing costs very attractive. A license is around 43 dollars per site if I remember well.
For the amount of work you put in, I'd recommend this software for you to evaluate. -
Hello Everyone,
We are migrating 9.3.1.3 EPMA DB schema (having planning/hfm applications) to 11.1.1.3 EPMA. Applied the required patch - "p9535372" to target server "11.1.1.3" so now target server is 11.1.1.3.02. After patch apply, we migrate the EPMA DB Schema and execute the upgrade through Configurater. Everything goes fine and able to login into shared services and workspace but system throws an error while loging into EPMA.
Error Message -
1) loading the module 'awb.appcontainer" failed
2) Object reference not set to an instance of an object.
Raised the SR - 3-4112905501 and BUG16- Bug 12808646 with oracle support/product team, meanwhile any suggestion/advice will be of Gr8 help
We have followed the other meta-link docs in reference to this issue, but not able to resolve the issue
1071537.1
763095.1
754408.1
Thanks in Advance
AmitHi John,
Thanks for you reply. Do you mean the process should be as follows (i add step 4 and remove step 7)? What about migrating business rules and calcmanager, how can i migrate this?
Kind Regards
1. Backup the relational tables of the application in 9.3.1
2. Backup essbase objects (rul, otl ,csc, rep)
3. Install EPMA 11.1.2.2 in a new server, including a new sql server instance.
4. Shared Services provisioning use CSSImportExport utility to export from the 9.3.1 env and then transform to LCM format to import, or you can look at the HSSMigrate utility which is available with 11.1.2.2 (JohnGoodwin)
5. Create a new application same name of database and connection and apply a “create” --->“Create a fresh planning application on version 11 make sure the admin is the same name as your old 9.3 planning app: “If the admin of your 9.3 planning application a native user and not the default hyperion system admin (account=admin) then; Go into the database tables for the planning app and look at table HSP_USERS, store the SID value against user 50001" JohnGoodwin:
https://forums.oracle.com/forums/message.jspa?messageID=3897312
6. Stop application, shutdown services.
7. Restore all relational tables of the 9.3.1 application (step 1) in to the ne application (step 5.)
8. Start services, apply a create in the application.
9. Copy objects (step 2) except otl.
10. Export data from 9.3.1 and import data to 11.1.2.2 application.
Edited by: Pavel Moreno on Mar 4, 2013 7:08 AM
Edited by: Pavel Moreno on Mar 4, 2013 7:09 AM -
TP_STEP_FAILURE " ERROR WHILE APPLYING SAP NW 04 SR1 ABA AND BASIS PATCHES
Hi Freinds!!
..I have completed cinst, dbinst, client copy, jinst, xinst installation for XI 3.0 INSTALLAION ON ABAP + JAVA.
I have first applied PI_BASIS patches and middle of it, it displayed the message that pre-requisite are not met i.e. First SAP_BW , SAP_BASIS, SAP_ABAP pathces needs to apply.
While applying SAP_BASIS and SAP_ABA patches... I'm getting the following error message ...
" The import was stopped, since an error occurred during the phase IMPORT_PROPER, which the Support Package Manger is unable to resolve without your input..
After you have corrected the cause of the erro, continue with the import by choosing Support
Package > Improt Queue from the initial screen of the Support Package Manager.
The following details help you to analyze the problem :
-Error in phase : IMPORT_PROPER
-Reason for Error : TP_STEP_FAILURE
-Return Code : 0012 "
....So, what could be the cause of the problem ? Do I need to increase table space through brtools command at ora<sid> ?!!
Pl. help....
Many thanks in advance...
-Rupen PatelThanks a lot everybody.
Although I had upgraded Kernel Patch Level from 43 to 155, the real cause was, it seems that was maxed out Oracle Table, ..as I found it through ST22 tr code which inturn displayed a logfile which displayed the details of error. I used brtools to extend the tablespace of a table, reapplied the patches thorugh SPAM and it worked out quite smoothly.
Thanks again and Regards,
-Rupen Patel
Maybe you are looking for
-
Ipod touch won't charge, reboot, or be recognized by computer or itunes.
Holding the start and back buttons simultaneously for up to one minute does nothing. It seems to not be accepting a charge from the computer or the wall charger. It has not gotten wet. Do these eventually just die?
-
Program does BDC for transaction F-52 or f-53
Hi GuruI am functional person and working with a developer in a program . The program does BDC for transaction F-52 or f-53 . I am uploading a file ,so that the program picks it and o either F-52 or F-53 based on condition. When i try to upload the p
-
What is a factory calendar in MM?
where it is configured and how the functionality works?
-
My Imac keeps freezing I have used my Start UP disk to repaire the disk but it dose not seem to help. Below is what I got on my console after a freeze. The screen freezes but the mouse still moves around. Imac OS 10.6.8 snow leopard 2.16 GHZ Intel
-
What is the full-form of this?
Hi all, In Loans Management (FS-CML), what is FS-CML (link is http://help.sap.com/saphelp_banking463/helpdata/en/09/7cba34e465b73ee10000009b38f83b/frameset.htm) Thanks, Charles.