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

  • Home
  • SEARCH
  • 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 4267016
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:50:24+00:00 2026-05-21T06:50:24+00:00

I have a schema extraction tool for SQL & Oracle which then tries to

  • 0

I have a schema extraction tool for SQL & Oracle which then tries to create a new database from the schema of another one.

I have encountered a problem with SQL at the moment (most likely exists in Oracle) that when it tries to do something like

CREATE VIEW TestView
SELECT * FROM AnotherViewNotCreated

it errors.

I thought using the EXEC command in SQL would work but it also complains that the view does not exist.

Is there a way I can create the views even if they reference other views that do not exist yet?

UPDATE: I’ve noticed if you Generate Scripts from SQL it outputs the order of view creation in an order that seems to suggest it knows which ones should be created first to prevent reference issues. Wonder how it knows?

  • 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-05-21T06:50:25+00:00Added an answer on May 21, 2026 at 6:50 am

    How could you create the view if it calls a view that doesn’t exist yet? You simply have to run scripts in dependency order.

    I would not recommend using views that call other views for performance reasons. We nearly lost a multi-million dollar client because some application developer thought this was a good idea. It worked fine until there were large amounts of data and then the sytem slowed to a crawl. Views that call other views, espcially when they go more than one level down, can be particularly diffiult to troubleshoot and maintain. I would really think about whether this is a good idea.

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

Sidebar

Related Questions

I have database schema for users. It looks like... CREATE TABLE `users` ( `id`
I have a XML schema that I will need to create Java classes for.
So I have a database schema like this: Users UserId RoleUserXRef RoleUserId RoleId UserId
I have the following table schema; CREATE TABLE `db1`.`sms_queue` ( `Id` INTEGER UNSIGNED NOT
I have schema similar to the following: create table bar ( instrument varchar(255) not
I have a schema here where I am trying to include/import another schema that
I have this schema which I need to define two primary keys; one is
I have a schema which is read by a few different applications for form
I have a schema define in my database. Except now everytime I do a
Say I have a schema that represents a fixed-depth hierarchy like this: CREATE TABLE

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.