Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7831953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:57:24+00:00 2026-06-02T11:57:24+00:00

We have a production issue involving multiple instances on a hosted environment. I’d like

  • 0

We have a production issue involving multiple instances on a hosted environment. I’d like to do some testing locally and wanted to reproduce a similar environment locally. Is there a way to create, say 40 instances, create a simple table, populate it with a loop?

Seems like making 40 or so would take a lot of time. Ideally, create Instance1, Instance2 and so forth, doesn’t matter what the table is and wanted to put in a good amount of data to simulate some kind of processing.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T11:57:32+00:00Added an answer on June 2, 2026 at 11:57 am

    I am not 100% sure if this exactly answers your question but I will give it a try.

    Oracle has a database, this is a collection of datafiles. An Instance is just the collection of processes that serves as an interface to the database, for the clients. So my assumption is that you want to make schema’s in the database and polulate them with tables and put some data in those tables.
    if that is the case, it is quite simpel:

    assume default tablepace for users is USERS
    logon as dba and run

    begin
     for i in 1..40 loop
        execute immediate 'create user schema_'||i||' identified by bigsecret quota unlimited on users';
        execute immediate 'create table schema_'||i||'.z as select * from dba_tables';
      end loop;
    end;
    /
    

    this creates 40 schemas in a loop, named SCHEMA_1 … SCHEMA_40.
    In every schema, one table named Z is created as a copy of DBA_TABLES.
    cleanup with

    begin
     for i in 1..4 loop
        execute immediate 'drop user schema_'||i||' cascade';
      end loop;
    end;
    /
    

    I hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In our production environment of 12 servers we have an issue with the code
We have a production machine and are trying to slowly introduce some 3.0 and
I am working within an intranet environment. We have both a production and development
Recently We have a production issue with application freezed, we tried to break in
Need some help with below issue We have 2 machines, each of these machines
I have a production issue that I can't replicate in the development or test
I am having the standard issue timeout exception in my production environment whereby, after
I have an issue, i cannot get any results from mysql on a production
Hi I have got some code that is reported as having the NP_GUARANTEED_DEREF issue
I have an issue with shutting down a Grails app in production. It shuts

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.