Home > OraLoader, Oracle import/export tool > Execute via command line and schedualed

OraLoader - Oracle import/export tool »

How to execute via command line and schedualed

We can run from command line or create a batch file(replace the "username", "password", "database" and "mode" with your own database user info. The lines wrap in this page, but in the file is 1 line):

	"C:\Program files\OraLoader\OraLoader" 
	username=hr password=hr database=xe mode=normal 
	session=E:\testcase\employees.ldr 
	logfile=E:\testcase\employees.log
		

Oracle Import/Export Tool - command line load session

or use "workspace" (contains multiple sessions), the workitems(sessions) can be queued.
	"C:\Program files\OraLoader\OraLoader" 
	username=hr password=hr database=xe mode=normal 
	workspace=E:\testcase\hr.olw 
	logfile=E:\testcase\hr.log
		

Oracle Import/Export Tool - command line open workspace

The OraLoader parameter descriptions are as follows:

	username: Your Oracle username.

	password: Your Oracle password.

	database: Your Oracle database name (SID). To use tcp-ip connection, you need set "database" to "server:port:sid", like this "database=localhost:1521:xe".

	mode: normal, sysdba, sysoper.

	unicode: If you want to import unicode data, set "unicode=true",  default is false.

	session: The session file name, to create a seesion file, please see this page: Save/Load session.

	workplace: The workspace file name.

	logfile: The log file name.

You may need to run a batch file at a specific time and/or at a certain time every day. Below is additional information about how to do this.

Microsoft Windows 98, ME, 2000, and XP users

With the introduction of Microsoft Windows 98, Microsoft has included Scheduled Tasks, a software program designed to run any program, including batch files, at any time or any schedule you desire. To run Scheduled Tasks, follow the below steps.

  1. Click Start
  2. Click Programs
  3. Click Accessories, System Tools, and then Scheduled Tasks.

Once open, you'll be able to create your own custom task by clicking Add Scheduled Task, which will start you through the wizard, prompting you with what program you wish to execute, how often you wish to run it (daily, weekly, monthly, one time only, when my computer starts, and when I log on), the time you wish to run, and how often each day to run.


OraLoader is a data conversion tool that helps DBA and database developer import/export Oracle database from/to flat files and Excel files.

30-day free trial Download OraLoader US$75.00 Buy OraLoader