473,395 Members | 1,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

QUESTION: Converting Oracle shell scripting from AIX to Windows

DW
Hi, all...

I have a sizeable database running under Oracle 9.2.0.4 under AIX
5.2.0.

I am faced with an impending move to a Windows environment, running
under SQL 2000.

Currently, we are heavy users of shell scripts, for exports, backups,
etc.

I am looking for viable scripting options under W2K/W2K3. Maybe sh/ksh
emulators, VB, Perl...?

Scheduling of script operations is also required.

Anyone been through this kind of move, who could offer some wisdom?
Thanks!
DW

Jul 23 '05 #1
19 2444
DW wrote:
I am looking for viable scripting options under W2K/W2K3. Maybe sh/ksh
emulators, VB, Perl...?


www.cygwin.com

Shell, sed, grep, awk... everything you need, and free.
-- Phil

Jul 23 '05 #2


DW wrote:
Hi, all...

I have a sizeable database running under Oracle 9.2.0.4 under AIX
5.2.0.

I am faced with an impending move to a Windows environment, running
under SQL 2000.

Currently, we are heavy users of shell scripts, for exports, backups,
etc.

I am looking for viable scripting options under W2K/W2K3. Maybe sh/ksh
emulators, VB, Perl...?

Scheduling of script operations is also required.

Anyone been through this kind of move, who could offer some wisdom?
Thanks!
DW


If I read this correctly you're not only changing operating systems
(AIX to Windows 2000/2003 server) but DBMS engines as well (Oracle to
SQL Server 2000). What good will your Oracle-centric scripts be to SQL
Server? You'll need to get accustomed to SQL Server's Enterprise
Manager to schedule and execute tasks for which, using Oracle, you
could write shell scripts. And get used to backing up and truncating
transaction logs, using log shipping to synchronise backup/standby
servers, and you'll need to re-define the term 'database' as it isn't
the same as the definition to which you're currently acquainted.

Certainly you can download UNIX tools compiled to run under Windows,
including shells, and you may feel more comfortable doing so. However,
it's the Windows operating system upon which SQL Server depends; it may
behoove you to learn to write batch files in addition to transferring
your UNIX skills to Windows.

SQL Server 2000 is a far different beast than Oracle. I would
seriously reconsider your request for UNIX utilities for Windows, and
learn the operating system on which your new DBMS runs.
David Fitzjarrell

Jul 23 '05 #3
DW wrote:
Hi, all...

I have a sizeable database running under Oracle 9.2.0.4 under AIX
5.2.0.

I am faced with an impending move to a Windows environment, running
under SQL 2000.

Currently, we are heavy users of shell scripts, for exports, backups,
etc.

I am looking for viable scripting options under W2K/W2K3. Maybe sh/ksh
emulators, VB, Perl...?

Scheduling of script operations is also required.

Anyone been through this kind of move, who could offer some wisdom?
Thanks!
DW


In SQL Server 2000 you can use Transact SQL scripts to perform the
operations you've mentioned (exporting and backing up data). You can
invoke Transact SQL from any of various scripting hosts using the OSQL
command line utility, using ODBC/OLEDB or other data access methods.
Windows scripting, VB script or DOS batch files are common choices for
straightforward tasks. For more complex logic you could consider .NET.

SQL Server comes with its own scheduler (SQL Agent) but you can also
use Windows or other third-party schedulers too.

SQL Server newsgroups in the microsoft hierarchy:

microsoft.public.sqlserver.server
microsoft.public.sqlserver.programming
etc

Hope this helps.

--
David Portas
SQL Server MVP
--

Jul 23 '05 #4
In addition to David Portas's comments, you might find the Oracle to
MSSQL migration white paper useful:

http://www.microsoft.com/resources/d...rt2/c0761.mspx

There is also a new Migration Assistant tool available:

http://www.microsoft.com/sql/migration/default.mspx

Simon

Jul 23 '05 #5
In addition to David Portas's comments, you might find the Oracle to
MSSQL migration white paper useful:

http://www.microsoft.com/resources/d...rt2/c0761.mspx

There is also a new Migration Assistant tool available:

http://www.microsoft.com/sql/migration/default.mspx

Simon

Jul 23 '05 #6
DW
"What good will your Oracle-centric scripts be to SQL Server?"

Exactly. I would like to retain the same functionality and flexibility
that I'm used to, and I'm really not convinced that such stuff can be
had in the limited confines of batch/cmd scripts.

Tx,

DW

Jul 23 '05 #7
DW wrote:
"What good will your Oracle-centric scripts be to SQL Server?"

Exactly. I would like to retain the same functionality and flexibility
that I'm used to, and I'm really not convinced that such stuff can be
had in the limited confines of batch/cmd scripts.

Tx,

DW


Could you give an example of the sort of thing you need. Maybe we can
suggest a solution.

--
David Portas
SQL Server MVP
--

Jul 23 '05 #8
DW
Well, this is a project we will be engaged in over the next few months;
I'm sure I'll have many specific bits of functionality that I will have
challenges translating into different toolsets.

For now, my basic intent was to get some alternatives, which I can
research independently and see how they'll fit into our plans.

Once we begin a more granular assessment of the scripts that need to be
translated, I'll likely be back. ;-)

Thanks for the feedback!

Jul 23 '05 #9


DW wrote:
"What good will your Oracle-centric scripts be to SQL Server?"

Exactly. I would like to retain the same functionality and flexibility
that I'm used to, and I'm really not convinced that such stuff can be
had in the limited confines of batch/cmd scripts.

Tx,

DW


I would, were I you, download a copy of BOL (Books On-Line) from
www.microsoft.com/sql and start reading, as this is probably some of
the best information for SQL Server you'll find.

I would still learn the Enterprise Manager for SQL Server.
David Fitzjarrell

Jul 23 '05 #10
DW wrote:
Well, this is a project we will be engaged in over the next few months;
I'm sure I'll have many specific bits of functionality that I will have
challenges translating into different toolsets.

For now, my basic intent was to get some alternatives, which I can
research independently and see how they'll fit into our plans.

Once we begin a more granular assessment of the scripts that need to be
translated, I'll likely be back. ;-)

Thanks for the feedback!

In the mean time, let my offer you my sincere condoleances.
Jul 23 '05 #11
DW
"What good will your Oracle-centric scripts be to SQL Server?"

Exactly. I would like to retain the same functionality and flexibility
that I'm used to, and I'm really not convinced that such stuff can be
had in the limited confines of batch/cmd scripts.

Tx,

DW

Jul 23 '05 #12
DW wrote:
"What good will your Oracle-centric scripts be to SQL Server?"

Exactly. I would like to retain the same functionality and flexibility
that I'm used to, and I'm really not convinced that such stuff can be
had in the limited confines of batch/cmd scripts.

Tx,

DW


Could you give an example of the sort of thing you need. Maybe we can
suggest a solution.

--
David Portas
SQL Server MVP
--

Jul 23 '05 #13
DW
Well, this is a project we will be engaged in over the next few months;
I'm sure I'll have many specific bits of functionality that I will have
challenges translating into different toolsets.

For now, my basic intent was to get some alternatives, which I can
research independently and see how they'll fit into our plans.

Once we begin a more granular assessment of the scripts that need to be
translated, I'll likely be back. ;-)

Thanks for the feedback!

Jul 23 '05 #14


DW wrote:
"What good will your Oracle-centric scripts be to SQL Server?"

Exactly. I would like to retain the same functionality and flexibility
that I'm used to, and I'm really not convinced that such stuff can be
had in the limited confines of batch/cmd scripts.

Tx,

DW


I would, were I you, download a copy of BOL (Books On-Line) from
www.microsoft.com/sql and start reading, as this is probably some of
the best information for SQL Server you'll find.

I would still learn the Enterprise Manager for SQL Server.
David Fitzjarrell

Jul 23 '05 #15
DW wrote:
Well, this is a project we will be engaged in over the next few months;
I'm sure I'll have many specific bits of functionality that I will have
challenges translating into different toolsets.

For now, my basic intent was to get some alternatives, which I can
research independently and see how they'll fit into our plans.

Once we begin a more granular assessment of the scripts that need to be
translated, I'll likely be back. ;-)

Thanks for the feedback!

In the mean time, let my offer you my sincere condoleances.
Jul 23 '05 #16
DW
Quite... ;-)

Jul 23 '05 #17
DW
Quite... ;-)

Jul 23 '05 #18
DW (dw*******@shaw.ca) writes:
I am looking for viable scripting options under W2K/W2K3. Maybe sh/ksh
emulators, VB, Perl...?


Perl is indeed available on Windows, see http://www.activestate.com for
a downloadable Perl binary for Windows.

As for connecting to SQL Server from Perl, this article on my web
site gives a quick overview of possible alterantives
http://www.sommarskog.se/mssqlperl/alternatives.html. Myself I offer two
modules in the area, but as they use DB-Library which is deprecated by
Microsoft, it's difficult to recommend them.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 23 '05 #19
DW (dw*******@shaw.ca) writes:
I am looking for viable scripting options under W2K/W2K3. Maybe sh/ksh
emulators, VB, Perl...?


Perl is indeed available on Windows, see http://www.activestate.com for
a downloadable Perl binary for Windows.

As for connecting to SQL Server from Perl, this article on my web
site gives a quick overview of possible alterantives
http://www.sommarskog.se/mssqlperl/alternatives.html. Myself I offer two
modules in the area, but as they use DB-Library which is deprecated by
Microsoft, it's difficult to recommend them.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 23 '05 #20

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Robin Siebler | last post by:
I have a bunch of command line tests that I need to automate. I've run into too many bugs with the default Win2k command shell, so I need to either purchase 4NT or handle the logic and output...
11
by: Adonis | last post by:
What I do not understand, or not clear to me I should say, is how can some people regard Python as a scripting language? In particular the JAVA crowd. Unless my understanding is off, and from what...
5
by: cyber-arkitect | last post by:
Hello all: I am a Solaris Unix Administrator with 6+ yrs. of experience in major companies who also has experience with AIX. Since I am good at Unix I would like to move into Oracle world,...
2
by: John Salerno | last post by:
Ok, like I mentioned before, I'm learning C# for fun. I'm interested in learning Python sort of as a "supplement" (by that, I mean a language with scripting capabilities that can do things maybe...
5
by: Javaman59 | last post by:
Hi all, I'm a Unix guy from way back, who's enjoying learning C# and Windows programming. Overall, it's not such a difficult transition (as long as one keeps an open mind :) ), but there is one...
6
by: hegyvari | last post by:
Hi, I have a few apps written in PHP, running on Fedora Core. After porting these applications from PostgreSQL to Oracle a bug appeared: sometimes, not in a reproducable manner, the web page...
11
by: Roy | last post by:
Does anybody have any idea why 2 identical classic asp pages, hitting the same Oracle schema, but deployed on 2 different servers will render the registered trade mark differently? Example: ...
6
by: Sanket80 | last post by:
Hi, I have one shell script which runs a report and sends the output to user. The shell script has some queries written in it in SQL and hence when I execute a shell script via a concurrent...
7
by: Frank Potter | last post by:
I learned some python in windows. And now I've turned to linux. I read a book and it teaches how to write shell script with bash, but I don't feel like the grammar of bash. Since I know about...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.