Thursday, February 13, 2014

DB2 : How to restore backup of database (IBM DB2 9.7, command for Linux,Unix,Windos)

To restore the database backup from IBM command line we can use following command.

Command:- db2 restore database <DATABASE_NAME> from <LOCATION>

LOCATION is optional in the above command. In case we are not providing location, DB2 will try to restore back from the location at which command prompt is pointing currently. 

Example:- db2 restore  database SAMPLE from C:\DB2Backups

Screenshot for the above command with LOCATION


Screenshot for the above command without LOCATION

DB2 : How to take backup of database (IBM DB2 9.7, command for Linux,Unix,Windos)

To take the database backup from IBM command line we can use following command.

Backup will be observed on the given location. In case of NOT providing location in below command, backup file will be observed on location on which Command prompt is pointing.

Command:- db2 backup database <DATABASE_NAME> to <LOCATION>

LOCATION is optional in the above command.

Example:- db2 backup database SAMPLE to C:\DB2Backups





Friday, February 7, 2014

DB2 : How to Connect using username?(DB2 9.7 command for Unix,Linux,Windows)

To connect to database instance using a username different from default admin user we use 2 following Commands
1) DB2 CONNECT TO <database>  USER <username>
Example

2) DB2 CONNECT TO <database> USER <username> USING <password>

DB2 : Get a list of all databases on a DB2 instance (IBM DB2 9.7 for Linux, UNIX )

To List all the database in DB2 following command will work. This will be applicable for all the nodes added to the database.

It will return all databases "cataloged" by the instance even if they are remote databases belonging to another instance or server


COMMAND :- DB2 LIST DATABASE DIRECTORY


IBM DOCUMENTATION LINK



DB2 : Get a list of all ACTIVE databases on a DB2 instance (IBM DB2 9.7 for Linux, UNIX )

To List all the active database in DB2 following command will work. This will be applicable for all the nodes added to the database.

COMMAND :-  DB2 LIST ACTIVE DATABSES

IBM DOCUMENTATION LINK



Wednesday, June 20, 2012

Apache Directory Server NOT Starting. 1067 Error

Problem :- Apache Directory Server  not starting. Its giving 1067 error.
log can found at C:\Program Files (x86)\Apache Directory Server\instances\default\log

[11:31:53] ERROR [org.apache.directory.server.Service] - Cannot start the server : reuseAddress can't be set while the acceptor is bound. [11:33:38] ERROR [org.apache.directory.daemon.Bootstrapper] - Failed on null.init(InstallationLayout, String[]) java.lang.NullPointerException at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.getEntryId(JdbmStore.java:946) at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.getEntryId(JdbmStore.java:70) at org.apache.directory.server.xdbm.search.impl.DefaultSearchEngine.cursor(DefaultSearchEngine.java:103) at org.apache.directory.server.core.partition.impl.btree.BTreePartition.search(BTreePartition.java:295) at org.apache.directory.server.core.partition.DefaultPartitionNexus.search(DefaultPartitionNexus.java:876) 

ROOT CAUSE:-

the file C:\Program Files\Apache Directory 
Server\instances\default\conf\server.xml was corrupted
Solution:-
1) Uninstall Apache DS.
2) Delete folder from C:\Program Files (x86)\Apache Directory Server
3) Restart machine.
4) Install and configure again. 
Solved..!!!

Tuesday, June 19, 2012

How to set up JAVA_HOME in Windows 7?

Prerequisites for this tutorials:-  Java 1.x should be installed. In case not done, the setup can be download from link and can be installed as any other software. 

Assumption:- Java is installed in C drive i.e. C:\Java

Following are the instruction to setup JAVA_HOME environmental variable in windows 7. 

1) Click Windows
2) Right click on "Computer"
3) Click Properties, this will open a new window with all system information. 

4) Click "Advance system settings", last option under right top menu. 
5) Click Advance > Environment Variable > New 
6) Key-in  "JAVA_HOME" in Variable name and JDK Path in Variable value. 
7) Now verify.


How to verify?
1) Open Command prompt(Winow+R>Key in CMD>OK)
2) Type Java -Version. Below like output should come. 



DONE.!!!

Tuesday, September 22, 2009

बहुत हुई economy की लाइफ अब है luxury की बारी

बहुत हुआ संकोच अब है निसंकोच की बारी,
बहुत हुआ prepaid अब है postpaid की बारी,
बहुत हुआ SUFFER,रेल का, अब है प्लेन की बारी,
बहुत हुआ पानी अब है पेप्सी की बारी,
क्यूँ की बहुत हुई economy की लाइफ अब है luxury की बारी

अब नया दिन नया सूरज चमक आया है ,
अब colgate white नहीं close-up मुस्कान लाया है
अब हर चीज़ का है नया चस्का , ब्रेड पे भी है double मस्का,
अब side में deo,पोक्केट में पारकर,कस के जूता कस के बेल्ट ,लो निकल पड़ी हमारी सवारी,
क्यूँ की बहुत हुई economy की लाइफ अब है luxury की बारी

अब नाअई नहीं Barber के यहाँ जाना है,
अब cutting नहीं styling जो करवाना है,
अब कान में earring और रेल में suffering,
अब DTC क्यूँ,क्यूँ Nescafe में जाना ,जब CAB और Barista की आ गयी हो बारी,
अब Koutons क्यूँ,क्यूँ Bata ही लाना ,जब जेब हो गयी हो भारी,
क्यूँ की बहुत हुई economy की लाइफ अब है luxury की बारी

लकिन क्या अभी भी है Life इतनी आस्सं ,1 easy swap में जो जाये सम्मा,
क्या अभी भी life है उतनी आज़ादी भरी,जिस्समे पूरी आ जाये सारी ज़िम्मेदारी,
क्या अभी भी है सर्दी जुखाम भारी,जब high class भी होती हो बिमारी,
क्या life है उतनी फ्री,जब tension हो इस्सके साथ फ्री,
क्या गए वोह दिन ,वोह कागज़ की कश्ती वोह बारिश का पानी,
क्या अब नहीं कोई लोचा,कब life में इतना सारा था सोचा
क्यूँ की बहुत हुई economy की लाइफ अब है luxury की बारी

Tuesday, July 21, 2009

हे भारतीये नारी, खामोश पानी हो तुम

हे भारतीये नारी, खामोश पानी हो तुम,
पत्नी के प्रेम में चुलबुला हो तुम,
वोह तेरा बचपन का नटखटपन, खेतो से गन्ना चुराना या फिर बाग़ से इम्सली चुराना
वोह शादी से पहेले कभी बलखाना, इतराना ,शर्माना
तो शादी के बाद तेरी वोह सीर पे ओद्दनी ,माथे पे बिंदिया,
हाथो में खनन खनन करती चुडिया और पेरो में चन चन करती पायल,
गंगा सा पवित्र आचल तेरा उस्स्पे लजा के श्रृंगार से सुसजित हो तुम,
हे भारतीये नारी, खामोश पानी हो तुम,

हे भारतीये नारी, खामोश पानी हो तुम,
माँ के ममता,वात्सल्या में बुलबुला हो तुम,
वोह तेरा स्नहे से माथा चूमना तो गुसे से कान मोड़ना,
मेरे ख़ुशी में ही अपनी ख़ुशी ढूँढना ,या मेरे गिरने पे वोह तेरा रोना, मेरा दर्द को अपना दर्द समझना,
खुद भूखे रहना और हमको खिलाना, पूछने ने पे झूटी हस्सी से सीर हिला कर खाने के लिए मन कर देना,
हमारे जनम से बुढापे तक अच्छा बुरा का ज्ञान सिखाती हो तुम,
देती हो जो तुम संस्कार हमे, हमे जानवर से इंसान बनती हो तुम
हे भारतीये नारी, खामोश पानी हो तुम,

हे भारतीये नारी, खामोश पानी हो तुम,
लाश्क्मी बाई के रूप में जलजला हो तुम,
परिवार के विषम परिस्थिति में चट्टान बनजाती हो तुम,
कभी लाश्क्मी,दुर्गा तो कभी चंद्दी रूप धारण कर लेती हो तुम,
निश्छल स्नहे, प्रेम की मूरत हो तुम,
हे भारतीये नारी, खामोश पानी हो तुम,




Monday, July 20, 2009

The question every day I ask to me

The question every day I ask to me,

What do you want to be a fighter or a looser?
Fighter of lost battle or looser of battle you never thought of fighting
So what if it makes me frail and weak
So what if its agony or pain, tells my days of doom
So what if my eyes can’t see longer
I will be sad, I know, but why should I let grief then stay in my hand
I may cry, roar my anguish may sore, but why should let my heart hold any tears
But who cares the repercussion only, as there is suppression only,
But beauty lies in knowledge, why you lost, but not in why you won.

The question every day I ask to me
What do you want to be a struggler or sluggish?
Struggler who can define own rule or a sluggish who keep running after others rule.
So what if I suffer
So what if tormenting pain sneers me
So what if heart bleeds red ,bones get rip
I know I may sink into purgatory but why should scream to world,
Why should I let know my desperation to the world
I know I may be unable to breath but why should fear pounding in to pieces
But who cares failure, when I am explorer not a mere saior
Just wake up just shake up because I am own king.


The question every day I ask to me
How do you want success Permissive or Elusive?
Permissive leads fake, illusive happiness while Elusive leads to subtle but to gratification, slef-contentness.
So what if I caught on wrong foot or smelling soil
So what if clock is ticking against me or pressed against wall
So what if asperser hitches me, procrastinates
I know success doesn’t come from sky then why should I cry
I know milestone is in me then why should I be flying of touching the rough.
But why should I break my heart when I fail when I know success doesn’t comes from sky
But who cares how hard path is when intend is clear for the success
Just do it MAN!! as many of the great achievements of the world were accomplished by tired and discouraged men who kept on workin