A databases.theory forum?

Hi again all,
Just an idea for discussion - does anybody think it might be a good idea to have a
databases.theory group for discussion on (inter alia) relational theory, database design,
open source, standards?
I know that sometimes questions occur to me while reading/writing posts that are
not really suitable for the technical .general and .SQL and PL/SQL, but are
nonetheless database related.
Any takers?
Paul...

Database - General forum already exists.
Can't that be used, for the small number of cases where someone may want to discuss relational theory etc. After all this is more of a technical forum for resolving technical issues, rather than a theory forum.

Similar Messages

  • Database Installation Forum

    The installation of Oracle Database under Windows is completely different from Unix and Linux. There really is not much in common. Would it not make sense to split the Database Installation forum at least by OS platform? For instance, I don't mind to monitor the Installation forum and answer Linux and Unix related questions, but I do not want to be bothered by MS Windows issues.

    Hi;
    I belive you cant download it no more from oracle site becouse this version is desupported now,thatswhy if this version is mandatory for your issue i suggest try to log SR or concact to local oracle ofis
    Please also check
    DB enterprise edition 10.1.0.2 download.
    Regard
    Helios

  • Suggestion:  Create a Database Design Forum

    I recommend the creation of a new forum dealing exclusively with database design questions, such as setting Primary Keys, Unique constraints, Check constraints, Indexes, schema-creation scripts, etc. There is no forum devoted exclusively to this topic now and I feel it would be very helpful to the user community. It would certainly make searching for answers to design questions much easier.

    Billy  Verreynne  wrote:
    Prohan wrote:
    I don't agree there.
    1. How to create a relational model certainly IS relevant to Oracle, which is a RELATIONAL DBMS.Oracle also supports data warehousing (star schema designs), network/hierarchical designs, object-relational designs - or pretty much any data model that you may come up with. Calling it just a relational DBMS is incorrect.
    2. Your point that logical models are independent of specific technology is correct. What you're missing is that if a specific technology makes use of a certain foundational body of knowledge, that knowledge is a legitimate topic for a forum whose users use that specific technology.That is putting the cart in front of the horse IMO.
    I would rather see data modeling and logical database design being done in a way that is untainted with specific vendor implementations and technology used. There needs to be a clear line dividing the design from the implementation. If not, then design decisions can (and will) be made based not on the correct logical data modeling principles, but whether it can be "handled" by the technology. A design that is tainted like that, will always be less than optimal (especially as technology is continually evolving and changing).
    An OTN forum for database design will invariable be tainted with Oracle technology - and instead of learning sound data modeling fundamentals, a warped view of data modeling will be conveyed. Where doing abc will be acceptable (when it is not), because Oracle has feature xyz that can make the flawed design work (in a fashion).Excellent points. I think (or at least hope) such a forum would attract some number of pure theorists to straighten out the view. This might make for a lively forum, and might actually influence the real products, and might even get the cart on the right side of the horse.
    Hmmm, I guess I do sound hopelessly optimistic.

  • SQL Loader - Also posted in Database-General forum

    Hi All,
    I am using Oracle 9i and am new to it. I created a new user and I am not very sure if I assigned all the priveleges and roles correctly.
    Problem is that I cannot log into SQL Plus and neither can I use SQL Loader. Am working in Windows XP environment. I can connect to SQLPLUS and SQL LOADER with the usual scott/tiger userid/passwd. Why cant I connect with the username/password that I created?
    I can use the Enterprise Manager Console provided by Oracle with scott/tiger as well as with the new username/password that I created. But why cant I connect to SQL Loader and SQL Plus?
    Regards,
    Mahesh.

    The error says:
    ORA-01017: invalid username/password; logon denied
    Which seems to indicate that you are not using correct
    password that you assigned when CREATE USER command was
    executed.
    Possibly, when you connect using enterprise manager, you
    might be connecting as SYSDBA which allows you to login
    since your NT userid might be part of the DBA group.
    try conncting to the database using the AS SYSDBA syntax
    when using SQL*Plus:
    click on START -> RUN
    and type "SQLPLUS.EXE /nolog" (without double-quotes) and click ok.
    At the SQL prompt, type connect <username> AS SYSDBA
    and see if you can connect.
    If you can, this means that when you created this new
    user you gave it SYSDBA privs. and at that point,
    password (or the username for that matter) is ignored.
    See the following session. here I do NOT have any user created by the name "XYZ" still when I connect AS SYSDBA,
    it allows me to connect:
    =======================================================
    SQL> connect xyz as sysdba
    Enter password:
    Connected.
    SQL>
    =======================================================

  • Is there a Database 12c forum?

    Hi  - apologies if this post is in the wrong place

    We use statspack because AWR + ASH requires enterprise edition and extra licensing option. Expensive.
    Statspack was updated nicely in 11Gr2 and is a great and free tool.
    Statspack looks like it has been updated in 12c, but having install issues.
    Will start a new discuission - thanks

  • Database design question about historical data in a group of tables

    Hi Folks,
    I have a group of tables having relationships among them. In order to keep the change history, we can not update the data, instead, we add new data to the table(s) and mark older data as whatever non-current status. They all have timestamps in these tables.
    For example, If table Parent changes, we add new record Parent(new) and keep older record(s). But the table child has not changed, so how could we link the parent and child table(s)?
    One solution is to use a unique sequencial number to identify the snapshot of all these group of tables, so the FK contains this sequencial number to keep all tables in sync from point of time t1 to t2 and so on.
    But the problem is if only one table changes, we have to insert new records to ALL tables with the new sequencial number to indicate a new snapshot of all group of tables, this obviously has lots of redundancy when change occurs in one place only.
    However, If we only adds new records to a changed table, lets say Parent, how could we distinguish the current record in Parent table and its child tables to reflect a consistent snapshot of all tables? Because the record in parent table Parent(t2), Parent(t1) all associate to child(t1), since at time of t2, child table has not changed, only Parent table changed.
    Your opinions are appreciated!
    Thanks a lot.

    There are books on the subject of dealing with time series data. You may need to read one or two as this is a very complex topic. Though not applications of time series classification are complex it is difficult to tell based on what information can go in a post.
    What has to be reflected on the parent when a child row is changed? Do both the old child row and the new child row belong to the same parent?
    What activity at the parent level would affect the child rows? That is, is there any activty on the parent that requires new child rows to be populated?
    One way of tying the child rows to a specific set of parents would be to carry the parent key, timestamp to the child as a begin_parent_timestamp and then also potentially have a end timestamp if a change to a parent ends the relationship. If changes to the parent do not ever end the relationsip then the end_timestamp would not be necessary. In this case if you want to join a parent to only the most recent version of a child you can perform a select parent kye, child key, max(parent_timestamp) from child group by parent key, child key. One child row would match serveral parents.
    Without more specifics it is hard to make suggestions that might prove usable but your table relationships might be too complex to deal with in this kind of forum.
    There is a newsgroup on database theory that may be a good place to seek ideas on this type of problem.
    HTH -- Mark D Powell --

  • Can We Have a Perfomance Tuning Forum?

    Justin,
    There are forums for Upgrade, Installation, Backup/Recovery & RMAN.But there is none for performance tuning. All the questions about the reports ie Statspack/AWR, Sql queries, they are pushed in the Database General forum only. With heavy volume of generic questions coming there, these threads bury inside them. I have been asked couple of times by several people/friends that why there is not any dedicated OTN forum for Performance Tuning? So if community and you think its a good thing to do, can we have a dedicated DB Performance Tuning forum too?
    Regards
    Aman....

    Aman,
    SQL queries tunning is not same as database tunning. Furthermore, most of the SQL queries tunning question go into SQL & PL/SQL forums.
    Moreover, more you have forums, more difficult is to find active knowledge people in every single forum. We cannot track many forums as well as few of them depending of your interest.
    See, few months ago, the Upgrade forum has been created, and since, only 153 posts there, it is not very used. Why ?
    It has been discuss many times over here, have a dedicated forum by features/interest, or have a big one.
    I don't find really strange db tunning question in the database general forum. I think even the upgrade question there have their place in that forum.
    If any new forum is created, the knowledge people have to follow to maintain that forum popular, which is not sure at all. Whether we are agreed to spend our time over the forums, that'll become very complicated to be active in more than 3 or 4 forums even if there is interest.
    See, OTN has upgraded the forum software for a better service, I don't think it has been reach. So, let's keep it simple.
    Nicolas.

  • Moving data from one table to another table in a diferent Database..

    I need to move the data of one table from one database to another table in a different database, is there a way to do this. Do I need the systemn password? or the password of the schema that own the table is enough? the tables are name different, same columns but different name. I know I can do it via sqlldr(creating a file...then runing the ctl file..etc), but I am wonder if it is a different way of doing it?
    Thank you

    Your question is more suitable for the Database-General forum @ General Database Discussions
    (You'll find more DBA's over there, although some of them take a glance over here as well every now and then ;) )
    Do not forget to mention the versions of both databases...

  • Moving the log file of a publisher database SQL Server 2008

    There are many threads on this here. Most of them not at all helpful and some of them wrong. Thus a fresh post.
    This post regards SQL Server 2008 (10.0.5841)
    The PUBLISHER database primary log file which is currently of 3 blocks and not extendable,
    must be moved as the LUN is going away.
    The database has several TB of data and a large number of push transactional replications as well as a couple of bi-directional replications.
    While the primary log file is active, it is almost never (if ever) used due to its small fixed size.
    We are in the 20,000 TPS range at peak (according to perfmon). This is a non-trivial installation.
    This means that
    backup/restore is not even a remotely viable option (it never is in the real world)
    downtime minimization is critical - measured in minutes or less.
    dismantling and recreating the replications is doable, but I have to say, I have zero trust in the script writer to generate accurate scripts. Many of these replications were originally set up in older versions of SQL Server and have come along for the
    ride as upgrades have occurred. I consider scripting everything and dismantling the whole lot pretty high risk. In any case, I do not want to have to reinitialize any replications as this takes, effectively, an eternity.
    Possible solution:
    The only option I can think of is to wind down everything, such that there are zero outstanding uncommitted transactions and detach the database, delete the offending log file and reattach using the CREATE DATABASE xyz ATTACH_REBUILD_LOG option.
    This should, if I have understood things correctly, cause SQL Server to recreate the default log file in the same directory as the .mdf file. I am not sure what will happen to the secondary log file which is not moving anywhere at this point.
    The hard bit is insuring that every transaction in the active log files have been replicated before shutdown. This is probably doable. I do not know how to manually flush any left over transactions to replication. I expect if I shut down all "real"
    activity and wait for a certain amount of time, eventually all the replications will show "No replicated transactions are available" and then I would be good to go.
    Hillary, if you happen to be there, comments appreciated.

    Hi Philip
    you should try this long back suggested way of stopping replication and restore db and rename or detach attach
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/6731803b-3efa-4820-a303-4ffb7edf154a/detaching-a-replicated-database?forum=sqlreplication
    Thanks
    Saurabh Sinha
    http://saurabhsinhainblogs.blogspot.in/
    Please click the Mark as answer button and vote as helpful
    if this reply solves your problem
    I do not wish to be rude, but which part of the OP didn't you understand?
    Specifically the bit about 20,000 transactions a second and database size of several TB. Do you have any concept whatsoever of what this means? I will answer for you, "no, you are clueless" as your answer clearly shows.
    Stop wasting bandwidth by proposing pointless and wrong solutions which indicate that you did not read the OP, or do you just do this to generate points?
    Also, you clearly failed to notice that I was on the thread to which you referred, and I had some pointed comments to make. This thread was an attempt to garner some input for an alternative proposal.

  • Checking free space in tables across all the tables in database

    Hello ,
    I have the below script which Gives the Free Blocks , Unused Blocks for the Tables of the Current User ( In which schema the script is run). How can this be modified so that it loops through all the schema tables in the database. ( Got this script from tom kytes blog)
    create or replace type show_space_type
    as object
    ( owner varchar2(30),
    segment_name varchar2(30),
    partition_name varchar2(30),
    segment_type varchar2(30),
    free_blocks number,
    total_blocks number,
    total_bytes number,
    unused_blocks number,
    unused_bytes number,
    last_used_ext_fileid number,
    last_used_ext_blockid number,
    last_used_block number
    create or replace type show_space_table_type
    as table of show_space_type
    create or replace
    function show_space_for
    ( p_segname in varchar2,
    p_owner in varchar2 default user,
    p_type in varchar2 default 'TABLE',
    p_partition in varchar2 default NULL )
    return show_space_table_type
    authid CURRENT_USER
    PIPELINED
    as
    pragma autonomous_transaction;
    type rc is ref cursor;
    l_cursor rc;
    l_free_blks number;
    l_total_blocks number;
    l_total_bytes number;
    l_unused_blocks number;
    l_unused_bytes number;
    l_LastUsedExtFileId number;
    l_LastUsedExtBlockId number;
    l_last_used_block number;
    l_sql long;
    l_conj varchar2(7) default ' where ';
    l_owner varchar2(30);
    l_segment_name varchar2(30);
    l_segment_type varchar2(30);
    l_partition_name varchar2(30);
    procedure add_predicate( p_name in varchar2, p_value in varchar2 )
    as
    begin
    if ( instr( p_value, '%' ) > 0 )
    then
    l_sql := l_sql || l_conj || p_name || ' like ''' || upper(p_value) || '''';
    l_conj := ' and ';
    elsif ( p_value is not null )
    then
    l_sql := l_sql || l_conj || p_name || ' = ''' || upper(p_value) || '''';
    l_conj := ' and ';
    end if;
    end;
    begin
    l_sql := 'select owner, segment_name, segment_type, partition_name
    from dba_segments ';
    add_predicate( 'segment_name', p_segname );
    add_predicate( 'owner', p_owner );
    add_predicate( 'segment_type', p_type );
    add_predicate( 'partition', p_partition );
    execute immediate 'alter session set cursor_sharing=force';
    open l_cursor for l_sql;
    execute immediate 'alter session set cursor_sharing=exact';
    loop
    fetch l_cursor into l_owner, l_segment_name, l_segment_type, l_partition_name;
    dbms_output.put_line( l_segment_name || ',' || l_segment_type );
    exit when l_cursor%notfound;
    begin
    dbms_space.free_blocks
    ( segment_owner => l_owner,
    segment_name => l_segment_name,
    segment_type => l_segment_type,
    partition_name => l_partition_name,
    freelist_group_id => 0,
    free_blks => l_free_blks );
    dbms_space.unused_space
    ( segment_owner => l_owner,
    segment_name => l_segment_name,
    segment_type => l_segment_type,
    partition_name => l_partition_name,
    total_blocks => l_total_blocks,
    total_bytes => l_total_bytes,
    unused_blocks => l_unused_blocks,
    unused_bytes => l_unused_bytes,
    LAST_USED_EXTENT_FILE_ID => l_LastUsedExtFileId,
    LAST_USED_EXTENT_BLOCK_ID => l_LastUsedExtBlockId,
    LAST_USED_BLOCK => l_LAST_USED_BLOCK );
    pipe row ( show_space_type( l_owner, l_segment_name, l_partition_name,
    l_segment_type, l_free_blks, l_total_blocks,l_total_bytes, l_unused_blocks, l_unused_bytes,
    l_lastUsedExtFileId, l_LastUsedExtBlockId, l_last_used_block ) );
    exception
    when others then null;
    end;
    end loop;
    close l_cursor;
    return;
    end;
    select SEGMENT_NAME, SEGMENT_TYPE, FREE_BLOCKS,TOTAL_BLOCKS,UNUSED_BLOCKS , (TOTAL_BYTES)/1024/1024 "Total MB", (UNUSED_BYTES)/1024/1024 "UNUSED MB"
    from table( show_space_for( '%',user,'%' ) );
    I am not really good at using the pl/sql . I was thinking to use a cursor to loop through the dba_users but not sure where and how I can insert it the code.
    Thanks for any help.

    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:1336002638218#1339720300346849060
    Do a search yourself on AskTom.
    Chances are you don't need to do anything at all here, but it depends on a lot of things...
    Also search the Database-General forum on this subject:
    General Database Discussions
    Oracle Onine Documentation:
    http://www.oracle.com/pls/db102/homepage
    Just do some quick searches from there as well.

  • ORACLE 11g + PHP5 problem: "fetch out of sequence" on remote database link

    Hi!
    I have a new server with oracle 11g (11.1.0.7) database and apache/php5 (actual build) on linux.
    connection type is dedicated.
    when doing a connection to a remote AS/400 database I always get this error:
    "Warning: oci_fetch_array() http://function.oci-fetch-array: ORA-01002: fetch out of sequence ORA-02063: preceding line from..."
    when doing the same simple "select * from database link" at my old server with oracle 9i and apache/php5 no problem occurrs.
    this happens at AS/400 database link only. normal oracle database links work fine.
    Anyone an idea how to solve this problem or where the problem is????
    further info:
    when doing " select * from [ database link ] where rownum < 11 " it works, but when doing the query with more than 10 results I get the error. Any idea?
    bye,
    Oliver
    Edited by: user501548 on 10.10.2008 02:20

    well a fetch out of sequence usually indicates that a cursor has been closed before the process has finished fetching or some such thing.
    I'm not aware of there being a specific problem with the situation you outline, but maybe if you could provide all the connection setup and how you are trying to connect that may give a better idea.
    Also, you may be better asking on the General Database Discussions forum as this isn't really a SQL or PL/SQL problem

  • How to deal with often ask doc questions in Oracle forums?

    All,
    Lately the number of doc questions in the Database General forum and the SQL and PL/SQL forum seems to increase exponentially.
    Also almost all posters never look up error messages in the on-line documentation, nor do they anything to resolve their own problem.
    Need I to mention ORA-12154? Probably not.
    While the Forums Etiquette post is clear you should be looking up, no one is actually doing that.
    Also apparently no one reads the Forum Etiquette post.
    The result of this is the Search Forum button has become fully useless and almost always turns up 1000s of non-relevant posts.
    Which results in .... people asking that question again
    I am quite aware the situation on http://asktom.oracle.com and many other sites is hardly better.
    I am also aware Jives might be incapable of addressing this properly.
    But can't something be done?
    Eg: Jives automatically consults the on-line documentation or automatically consults Google or even Wikipedia?
    I try to avoid answering doc questions as much as possible, but that doesn't work.
    If I could, I would kick the poster, as this kind of laziness really annoys me.
    When I started my career the Internet didn't exist. The only things available were manuals and the phone to call support, and it wasn't outsourced to Asia.
    Regards
    Sybrand Bakker
    Senior Oracle DBA

    sybrand_b wrote:
    All,
    Lately the number of doc questions in the Database General forum and the SQL and PL/SQL forum seems to increase exponentially.
    Also almost all posters never look up error messages in the on-line documentation, nor do they anything to resolve their own problem.
    Need I to mention ORA-12154? Probably not.
    While the Forums Etiquette post is clear you should be looking up, no one is actually doing that.
    Also apparently no one reads the Forum Etiquette post.gang-faq 'em!
    >
    The result of this is the Search Forum button has become fully useless and almost always turns up 1000s of non-relevant posts.
    Which results in .... people asking that question again
    I am quite aware the situation on http://asktom.oracle.com and many other sites is hardly better.
    I am also aware Jives might be incapable of addressing this properly.
    But can't something be done?
    Eg: Jives automatically consults the on-line documentation or automatically consults Google or even Wikipedia?When I've seen this (as in metalink), it has been more a waste of time than random guessing answers by newbies. Even the best neural network software would be stumped by the range of experience it would have to deal with.
    >
    I try to avoid answering doc questions as much as possible, but that doesn't work.
    If I could, I would kick the poster, as this kind of laziness really annoys me.
    When I started my career the Internet didn't exist. The only things available were manuals and the phone to call support, and it wasn't outsourced to Asia.You are making the same mistake so many newbie user interface designers make: You have to deal with the wide range of experience and expectations of the user population, not a small homogenous group of Dutch programmers who will follow arbitrary rules.
    http://imgs.xkcd.com/comics/duty_calls.png

  • Oracle database not starting up in oracle 10g RAC

    Hi!
    Recently I came across one problem with one node oracle 10g RAC.When the Oracle database is started,while opening it is giving ORA-03113:End of file on communication channel error.When I saw the the alert trace file and other trace files I found Disk group is exhausted error and it is not able to create .dbf files.Actually it is not a production server and I gave archive log destination in SAN.Even the spfile(content of init_database.ora) is in SAN..
    I tried Asmcmd utility to delete the archive log files.As the oracle is not available I am not able to asmcmd prompt.
    How to change the destination of archive log and to remove the old archive log files(as it is a testing environment we can remove) from SAN?Please let me know.
    Thanks & Regards
    Srikanth MVS

    keithrust wrote:
    On VMware there's a known issue with Oracle databases on a Windows client not starting up properly all the time and a manual startup using oradim -start -sid <whatever> is required to get it fully running. Hmmm, doing it several time, and never seen such issue. Which "known issue" and by who are you talking about ?
    I created a brand new Oracle VM Windows 2003 32-bit server, installed the Oracle drivers for paravirtualization, and whammo, the problem is still hereI'm sure, you miss something somewhere in the config. Right now, you're on supported configuration, you could either raise a SR to the support, or get help from your peer on Oracle Database General forum.
    Ah, but it's not a Windows issue. On a non-VM Windows box the database starts just fine all the time. Again, this is a known issue acknowledged by Oracle on the VMware side, I'm just surprised it exists on the Oracle VM side.Again, give more details about this "known issue". Never heard about that, eventhough I've been around for years.
    I was afraid you were going to ask that. I'll have to search for it again, but I think you can do the same as well....Well, I doubt you could find a Metalink note about Oracle on VMWare. So far, Oracle has always refused to support database on OS virtualized on VMWare (or any VM software other than Oracle VM). Based on that, you could be sure, your "known issue" is not an issue on Oracle VM.
    If you want more help, again, give more details about your issue.
    Nicolas.

  • I want to extract data from oracle dump file (.dmp) using oracle database or any other tools.

    There is import which provides me data as graphical way. But i need extract data in such a way so that i could able to use in my application.
    thanks,
    mohan

    This isn't a SQLDeveloper question. You will get better answers in the Database - General forum.
    Oracle dump files produced by the exp or expdp utilities are inproprietary formats which can only be read by the imp or impdp utilities respectively.
    The best way to get data out of a dump file is to import it into a database and then extract it to plain text files using SQL.
    Alternatively, leave it in the database and your application can access it there.
    The exp dump file is mostly plain text, but the format is not published so you could waste a lot of time figuring it out.

  • Discussion Forum Portlet on RAC Environment

    Hi
    I have installed Discussion Forum Portlet but I am seeing the following error intermittently:
    Unable to perform the operation: JBO-26041: Failed to post data to database during "Insert": SQL Statement "BEGIN INSERT INTO MESSAGE_CLOB(ID,AUTHOR_ID,MESSAGE_DATE,CONTENT,THREAD_ID) VALUES (:1,:2,:3,:4,:5) RETURNING ID INTO :6; END;".
    I think the problem is because we have our database in a RAC environment where our Portal schema is. I am not sure how to specify the same details in the bc4j.xcfg file. The following are the details that I have in the bc4j.xcfg:
    <ConnectionDefinition name="df">
    <ENTRY name="JDBC_PORT" value="1521"/>
    <ENTRY name="ConnectionType" value="JDBC"/>
    <ENTRY name="HOSTNAME" value="hamcheese.corp.ihop.com"/>
    <ENTRY name="DeployPassword" value="true"/>
    <ENTRY name="user" value="df"/>
    <ENTRY name="ConnectionName" value="df"/>
    <ENTRY name="SID" value="asdev1"/>
    <ENTRY name="password" value="df"/>
    <ENTRY name="JdbcDriver" value="oracle.jdbc.driver.OracleDriver"/>
    <ENTRY name="ORACLE_JDBC_TYPE" value="thin"/>
    </ConnectionDefinition>
    How can I specify the two hostnames in this file?
    Please let me know.
    Thanks
    Hari

    Hi Hari,
    I am not sure how this would work, but i think you could try posting the issue on the Database / JDBC forums, specifying the issue as
    How to specify connect details for a RAC m/c in the Datasource file.
    You might get some answers there.
    thanks,
    Harsha

Maybe you are looking for