We need to add a new column to a table and then populate this column with a sequence number based on some ordering of the current data.
i.e. we have a date in the table which we want to order by and then based on this order assign the correct sequence number hence if you order by date and order by sequence number you get the same order.
I was wondering if anybody knew the fastest way of doing this?
Currently the only option we have found is to take a copy of the table and order the data and then using a for loop insert into the column using a sequence . This seems like a slow method to me considering you can only use a for loop and not bulk operations. We can't use a simple insert statement as the number of rows is 28m.
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax:
This way, I guessed, I would ensure that use…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux.
Script may need to be modified depending on OS-installation.
Please deploy and verify the script in a test environment.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines