Selasa, Mei 08, 2012

ORACLE : shared memory realm does not exist [SOLVED]

SOLVED : shared memory realm does not exist

First Step.
Open your Command line~

Second Step.
type this : sqlplus sys/root as sysdba
note:
sqlplus~default

sys~username
root~password
sysdba~default 
 
Third Step.
#ALTERNATE,  type this : startup;
CHECK BY LOGIN AGAIN !
if it's success, STOP for the next steps ;)
 ################################
type this : shutdown immediate;
Is there any errors? If yes, ignore it ;)

Fourth Step.
type this : startup nomount;

Fifth Step.
type this : alter database mount;

Sixth Step.
type this : alter database open;
Is it fix your problem now?
NO?
DO IT AGAIN... 


GIVE ME CENDOL (kaskus.us)IF THIS STEPS FIXED YOUR PROBLEM...



Maturnuwun... ^.^v

Kamis, Maret 15, 2012

Cara Pindah Kelas di Android (2.2 - Froyo)



di main.xml -> res/layout


android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
android:id="@+id/button1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Click Here!"
/>


di main.java -> activity ke-1 :

public class main extends Activity implements android.view.View.OnClickListener{
/** Called when the activity is first created. */
Button button;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
button = (Button)findViewById(R.id.button1);

button.setOnClickListener(this);
}

@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
if(arg0==button){
Intent i = new Intent(getApplicationContext(),menu.class);
startActivity(i);
}
}

buat "xml file" & "java class" baru, dengan nama menu.xml dan menu.java.

di menu.xml -> res/layout


android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Moved Class Success!" />


di menu.java -> activity ke-2 :

public class menu extends Activity{
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.menu);
}
}

hasilnya seperti ini :

Senin, Februari 27, 2012

project name] Unable to resolve target 'android-4'

When you see your last project get this error message (after update maybe), i have a solution for you :

Create a new project again...
Thank you...

Sorry, we were unable to render this page. The blog or view may not exist. Learn more

When you see this message, don't be worry please...
"Sorry, we were unable to render this page. The blog or view may not exist. Learn more"
I solved this problem easily, try this :

>>> Just change your " Blogger Template Designer ", so you can solve this problem easily...

Maturnuwun... (Gracias/Thank you) ^^v

Shutting down and Starting Oracle Steps using The Oracle SQL*Plus application

Oracle SQL*Plus

Try this one :

1. conn hr/hr;
2. show user;
3. conn sys/admon as sysdba;
4. show user;
5. shutdown immediate;
6. startup nomount;
7. alter database mount;
8. alter database open;

Simple right ? ^^v


Maturnuwun... (Thank you/Gracias)

Sabtu, Februari 25, 2012

Solved ::: >>> PANIC: Could not open: C:\Users\USERNAME\.android/avd/sdf.ini







When you get an message like this :
PANIC: Could not open: C:\Users\USERNAME\.android/avd/sdf.ini
Picture 1 :

I solved with this things :
1. Open your AVD Manager
2. Create your new AVD, then create AVD
3. Click Details... button (right side)
Picture 2 :
4. See the path of your new AVD that you created
Picture 3 :
5. Copy/Cut your "avd FOLDER"
Picture 4 :
6. Paste it in this path : C:\Users\USERNAME\.android (Replace/overwriting)
Picture 5 :
7. Refresh your AVD Manager, then Start it...
Picture 6 :


Maturnuwun... (Terima kasih..., Gracias..., Thank you...) ^^v

Senin, November 14, 2011

HOW TO CONNECT ORACLE DATABASE IN JAVA (NETBEANS 6.9) #VERY SIMPLE

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package oraclebaru;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

/**
*
* @author Administrator
*/
public class Main {

/**
* @param args the command line arguments
*/
public static void main(String[] args) throws Exception {
Connection connection = null;
try {
String driverName = "oracle.jdbc.driver.OracleDriver"; //Default
Class.forName(driverName);

String serverName = "localhost"; //Default serverName, but you could change this with this '127.0.0.1'
String portNumber = "1521"; //Default portNumber
String sid = "orcl"; //Depending on your first installation settings
String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
String userName = "hr"; //username at login
String password = "hr"; //password at login
connection = DriverManager.getConnection(url, userName, password);

connection.setAutoCommit(false); //Dhurung ngerti fungsine nggo nopo
Statement st = connection.createStatement();

st = connection.createStatement();
ResultSet rs = st.executeQuery("SELECT LAST_NAME FROM employees"); //Action query
// System.out.println(rs.absolute(1)); //pass dicobo ora error, nanging muncul tulisan enkripsi sko resultSet dhewek
while(rs.next()){
System.out.println(rs.getString(1)); //Displaying String from rs 1 coloumn * LAST_NAME
}
rs.close();
st.close();
connection.close();
} catch (ClassNotFoundException e) {
} catch (SQLException e) {
}
}
}

By : Laboran FTI
Referensi : http://in.answers.yahoo.com/question/index?qid=20101211005240AANg40Y
Good Luck..