Mohamed Omar
-
Join 8 other subscribers
Blog Stats
- 93,711 hits
Hours & Info
-
Recent Posts
- (JAI vs. ImageIO)
- Abstract Factory Design Pattern
- Authentication
- Basic
- Command Line Arguments
- conn
- content
- convert file from windows to linux
- DataSource
- display child pages title
- DriverManager
- eclipse
- excerpt of current parent page at wordpress
- export
- Factory Design Pattern
- federated search
- Form-based authentication
- get recent post in category in worpress
- How do I remove the title of an embedded sheet?
- How do you add a new joomla module position
- how login to ssh
- How to find and replace in mysql
- how to make application Listener
- How To send Email with attachment in java with spring
- How To Unzip Large File With Java
- How to use ContextLoaderListener
- idm
- java
- Java ClassLoader
- JDBC
- JNDI
- JPA Tuturial
- jquery
- JSP
- JSTL
- learn
- linux
- Map
- move directory in Java
- nodemanager
- OAM
- ODC
- oid
- OIM
- oracle
- oracle Access Manager
- oracle identity and access management
- oracle identity manager
- PooledConnection
- preparedstatement
- records
- regex
- Remove CRLF
- remove title from embedded google spreedsheet
- resultset
- schedule tasks by java
- Security constraints
- Spring
- Spring framework without XML
- static int
- Timer by java
- tutorial
- UCM
- unzip
- URM
- View technologies
- web.xml
- Web Application Deployment Descriptors
- webcenter content
- weblogic
- Widgetize wordpress
- WordPress Custom Post Types Guide
- WordPress Theme: Log In On The Front Page
- WP-Ecommerce
- Write Multiple Images Tiff File
Archives
- October 2017
- August 2017
- January 2015
- December 2014
- September 2014
- August 2014
- June 2014
- January 2014
- December 2013
- November 2013
- September 2013
- August 2013
- June 2013
- May 2013
- April 2013
- March 2013
- December 2012
- November 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
Top Clicks
- None
May 2024 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Category Archives: database
Export and Import Oracle Database
this video created by Mohamed Yassin
ORA-01940: cannot drop a user that is currently connected solved
select sid, serial# from v$session where username = ‘AXF’; Alter user AXF account lock; alter system kill session ‘209,8029’; drop user AXF cascade;
Oracle Sql
USING SQL PLUS or Any Oracle Tool Like “SQL Developer or TOAD” ============================================================== create user supplier2 identified by supplier2 grant connect,resource,dba to supplier2 unlock ====== alter user joe account unlock; alter user awb account unlock identified by awb; change password … Continue reading
How to Fix ORA-12162 TNS:net service name is incorrectly specified Error in Oracle?
sometimes the oracle profile is not prepared correctly and this give so many errors and you should go direct to directory of SqlPlus to start DB /u01/app/oracle/product/11.2.0/dbhome_1/bin ./sqlplus sys/password as sysdba; the following error will arises ORA-12162 TNS:net service name … Continue reading
Posted in oracle
Tagged directory, ORA-12162 TNS, oracle, oracle home, oracle product, sid, sqlplus
2 Comments
run linux command from java and reading result?
import java.*; class Test { public static void main(String[] args) { int ch; try { Process myProcess = Runtime.getRuntime().exec(“ls -al”); InputStreamReader myIStreamReader = new InputStreamReader(myProcess.getInputStream()); while ((ch = myIStreamReader.read()) != -1) { System.out.print((char) ch); } } catch (IOException anIOException) { … Continue reading
restarting mysql at linux
service mysql restart
SqlExecuter vs JDBC
public class CmdExec { public static void main(String argv[]) { executeSql(); } private static void executeSql() { final class SqlExecuter extends SQLExec { public SqlExecuter() { Project project = new Project(); project.init(); setProject(project); // setTaskType(“sql”); setTaskName(“sql”); } } SqlExecuter executer … Continue reading
how to get last insert id by java
public static int getLastInsertID(Connection conn, String statment)throws SQLException { int lastInsertedId = -1; PreparedStatement ps = conn.prepareStatement(statment,PreparedStatement.RETURN_GENERATED_KEYS); ps.executeUpdate(); ResultSet rskey = ps.getGeneratedKeys(); if (rskey != null && rskey.next()) { lastInsertedId = rskey.getInt(1); } return lastInsertedId; }
Posted in java, jdbc, mysql
Tagged conn, preparedstatement, resultset, static int
Comments Off on how to get last insert id by java
How to find and replace in mysql
To find a string in a certain field and replace it with another string: update [table_name] set [field_name] = replace([field_name],'[string_to_find]’,'[string_to_replace]’); update `wp_posts` set `post_content` = replace(`post_content`,’http://localhost/elrashd/holding/’,’http://elrashad.promolinks.com/’)
unknown-table-engine-innodb
http://www.osterman.com/wordpress/2007/12/23/unknown-table-engine-innodb I was getting the error “ERROR 1286 (42000): Unknown table engine ‘InnoDB’” when trying to create/alter tables with the InnoDB engine. You can check for this warning by issuing the create or alter statements and then running show … Continue reading
Posted in database, mysql
Leave a comment