Open Netbeans with Two Instances / Windows Simultaneously

I need to open two projects, so I can learn from demo project and to develop my new project. But when I click Netbeans shortcut for the second times, Netbeans not display as another instance/window. To overcome this,
1. Click Netbeans menu, “Help” | “About”, look for “Userdir” parameter to see user directory.
2. Create another user directory.
3. Copy the first Netbeans shorcut and paste it as second Netbeans shortcut.
4. Right click the second Netbeans shortcut, choose “Properties”.
5. See the field “Target”, the value of mine like this “C:\Program Files\NetBeans 6.7.1\bin\netbeans.exe”
6. Add Netbeans command line switch “–userdir “, so the value of “Target” field become like this "C:\Program Files\NetBeans 6.7.1\bin\netbeans.exe" --userdir C:\Users\wi\.netbeans\second

ORA-01110: data file 1: ‘SYSTEM01.DBF’

The database is suddenly can not connect. I’ve tried using the command,
shutdown immediate;
startup mount;
alter database open resetlogs;

Then this error appears
ERROR at line 1:
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: ‘\SYSTEM01.DBF’

Second try,
SQL> alter database recover datafile ‘\SYSTEM01.DBF’
ERROR at line 1:
ORA-00283: recovery session canceled due to errors
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done

SQL> recover database until cancel using backup controlfile;
ORA-00279: change 302423545 generated at 01/14/2009 09:25:14 needed for thread 1
ORA-00289: suggestion : G:\ARCHIVELOGS\672825376_1_49174.ARC
ORA-00280: change 302423545 for thread 1 is in sequence #49174

Specify log: {=suggested | filename | AUTO | CANCEL}

The more I want to find the solution, the more errors occurred. So I took the decision to continue to seek solutions from the first error only (“ORA-01110: data file 1: ‘\SYSTEM01.DBF'”).

Finally, after googling everywhere, I found the command in RMAN,
RMAN TARGET USR/PW
RMAN > RESTORE DATABASE
RMAN > RECOVER DATABASE

Back to SQLPLUS, I run again alter database open, and error is gone. ^_^

Oracle Database Status Unavailable – emca

When i try to login to Oracle Enterprise Manager, i got this message
The database status is currently unavailable. It is possible that the database is in mount or nomount state. Click ‘Startup’ to obtain the current status and open the database. If the database cannot be opened, click ‘Perform Recovery’ to perform an appropriate recovery operation.

Then the options are button to Startup and Perform Recovery. When i click Startup then i have to input the OS user name and password to login to target database machine and the credentials for the target database.

Then got this error, SQLException
ORA-28000: the account is locked

I have try to use emca, but after I input some parameter to run, finally i stuck again with this message,
SEVERE: Repository already exists. Fix the error(s) and run EM Configuration As
sistant again in standalone mode.
Could not complete the configuration. Refer to the log file for details

After read emca help, then i try to use emca -r to skip creation of repository schema then at last I got Oracle EM run without no error

Moscow Boss Job URLs

Here is a list of URLs that will initiate the Call for Help for Boss Fight just as it would if button was not locked.

Episode 1
URL: http://apps.facebook.com/inthemafia/remote/html_server.php?xw_controller=episode&xw_action=moscow_boss_job_request&xw_city=3&job_id=13&tab=
Title: Matyoryj Baklan
Loot Item: Barsuk SUV / Vehicle – 36 Attack, 52 Defense

Episode 2
URL: http://apps.facebook.com/inthemafia/remote/html_server.php?xw_controller=episode&xw_action=moscow_boss_job_request&xw_city=3&job_id=26&tab=
Title: Matyoryj Boets
Loot Item: Boss Karpov’s Pistol / Weapon – 50 Attack, 38 Defense

Episode 3
URL: http://apps.facebook.com/inthemafia/remote/html_server.php?xw_controller=episode&xw_action=moscow_boss_job_request&xw_city=3&job_id=43&tab=
Title: Matyoryj Brigadir
Loot Item: Ex-KGB Bodyguard / Armor – 48 Attack, 30 Defense

Episode 4
URL: http://apps.facebook.com/inthemafia/remote/html_server.php?xw_controller=episode&xw_action=moscow_boss_job_request&xw_city=3&job_id=56&tab=
Title: Matyoryj Avtoritet
Loot Item: Cossack Armored Vest / Armor – 18 Attack, 48 Defense

Episode 5
URL: http://apps.facebook.com/inthemafia/remote/html_server.php?xw_controller=episode&xw_action=moscow_boss_job_request&xw_city=3&job_id=73&tab=
Title: Matyoryj Vor
Loot Item: ZPR Pulemut / Weapon – 28 Attack, 65 Defense

Episode 6
URL: http://apps.facebook.com/inthemafia/remote/html_server.php?xw_controller=episode&xw_action=moscow_boss_job_request&xw_city=3&job_id=86&tab=
Title: Matyoryj Pahkan
Loot Item: The Drakon / Vehicle – 54 Attack, 22 Defense

Mafia Wars Profile Point

Profile points are the points you get when you level up or master jobs. Perhaps, all of us have doubts which one do I need to increase the Mafia Wars profile points.

  • Profile points put into energy come directly back to you in experience points, in anywhere from a 1:1 to 2:1 ratio (experience per energy expenditure), depending on the job.
  • Profile points put into stamina come back to you in an average of about 2:1. In addition, to win fights you’ll need to throw profile points not just into stamina, but also into attack and defense.
  • So to continue to get the most experience out of each profile point, concentrate on using them to do more jobs (energy) vs. becoming better at fighting (stamina, attack, and defense).
  • Don’t bother to ever put profile points into health. Health only prolongs how long you can fight without visiting the doctor, but ongoing you’ll be making so much money that you’ll be able to afford the doctor as much as you’d like without issue.

For now, my focus is on attack, defense and energy. I increased personal attack and defense only enough to win most fights at each level up until now.

Energy is a personal choice. If you enjoy leveling up quickly, you’ll need the energy. If you are patient, and okay waiting for your energy pack and leveling up once a day, more stamina to you for the fighter type.

ORA-08102: index key not found

I got this error message, ORA-08102: index key not found, obj# 211154, file 21, block 1194413 (2)

when i run

DELETE FROM STATEMENTS
WHERE ID = ‘9646’
AND ORG_ID =’204′
AND TYPE NOT IN (‘PLA’, ‘TRK’, ‘RO’, ‘WO’, ‘CLM’);

To fix this error, i rebuild all of the index.

How to Stop Netbeans: Transferring repository index

When i start Netbeans 6.7.1, i had a very slow to start using it. I see at status bar, that Netbeans is Transferring repository index : java.net repository. This condition start when i accidentally click Maven Repository Browser.

So, to stop Netbeans transferring repository index when i start up, go to “Tools | Options | Miscellaneous | Maven”, find “Index Update Frequency” and then adjust how often it should be updated.