Oracle Naming conventions
Hi everyone,
I wanted to ask you about Oracle Naming Conventions. I've found a lot of stuff on the internet. Here's a short summary of what I've discovered so far...
These are absolute:
1- All names should be between 1 & 30 characters (database names accept 8 characters max)
2- Names can not be duplicated in the same namespace
indexes, constraints... are in one "schema" namespace
tables views... are in another "schema" namespace
3- Only letters (lower & upper), numbers and $, # & _ are accepted in a name.
4- Quoted identifier are case sensitive and accept all kind of characters.
The previous rules can not be violated otherwhise the object won't be created.
Now they are a lot of naming conventions...
- Always use a plural names for table (USERS i.o. USER)
- use a prefix or suffix in constraint, indexes, ...
USERS_PK, USER_IDX...
I want to talk about these. What are your own naming conventions?
Thanks
user13117585 wrote:
Hi everyone,
Well actually I am currently trying to make a document for my company. All the developers will need to follow the rules I'm writing.
"It's good to be the king!"
My problem is that, I have many databases with hundreds schemas and I want to normalize everything (no only me want that but the management too). Anyway,
- Some people are still using only 8 letters for object names (tables, views, constraints...). Names are cryptic. I spend like an hour to understand what means DRPOLDSZ. And table columns are also limited to 8 characters (what could DELLOLCN mean??)
- Some developers are using other conventions. A good Table example would be:
TABLE DOSSIERS
DOS_DOSSIER_ID
DOS_NUMBER
DOS_CREATION_DATE
I hate that prefix in each column too;
As do I. Going back to data normalization .... the prefix adds nothing.
>
- Some developers use other conventions
some have table names in plural, others singular
some don't use the _ to separate multiple words object names, some well
some prefix table id some use postfix (id_table vs table_id)
etc etc.
I want to normalize all the databases to use one and only one convention; I already thought about it and wanted to know what you all have in place; how do you manage to have all your developers using the same conventions ?
About [ http://ss64.com/ora/syntax-naming.html| http://ss64.com/ora/syntax-naming.html] (1) article, I've read it but, I don't agree with the guy on everything. He mostly uses prefix (pk_Table, idx_table, fk_table). When you give some thoughts, isn't it better to use suffix?
Table_PK, Table_IDX, ...
When you do a query on ALL_ or USER_OBJECTS, you can order them on OBJECT_NAME and have the name groupped together.
I also prefer to have in the constraint name the base table and the referenced table. Instead of what the guy propose FK_TABLE_NAME, something like TABLE_NAME_REF_OTHER_TABLE_FK
Well, you don't have to slavishly follow anyone else's document. Again, you are using those for ideas. In the end, you need to do what makes sense to you. Also realize that having A standard - almost ANY standard - is better and more important that sweating the pros-and-cons of any particular detail. Just make a decision and go with it. Get management to sign off on it as the standard.
My question is not really a question but more a how do you handle all kind of developers and what is the best way to force them to normalize and use the same conventions...The only way to force it is to take "CREATE object" away from the developers. This is actually done in many shops. If you can't do that, then at least set yourself a task of auditing and going back to violators. If you get some recalcitrant violators, elevate it to management - who you had sign off on it.
Similar Messages
-
Oracle BPEL standard, best practice and naming convention
Hi, folks,
Is there any standard or best practice associated with Oracle BPEL, regarding development, performace, what to avoid, etc? And is there any naming convention for the process, variable partner link name, etc? Similar to naming convention in writing Java code?
Thanks
JohnHi,
Here is the best practice guide:
http://download.oracle.com/technology/tech/soa/soa_best_practices_1013x_drop3.pdf
Thanks & Regards,
Dharmendra
http://soa-howto.blogspot.com -
Someone has nomenclature (naming conventions) for oracle data integrator?
Someone has nomenclature (naming conventions) for oracle data integrator?
You should really move this question over to the Oracle Data Integrator forum(Data Integrator for a more expedient response.
-
Oracle Recomanded Naming Conventions for SOA
Hi,
We are working on a 12i implementation project using SOA (BPEL) for interface development and Oracle Data Integrator for conversion. Could you please let us know about oracle recomanded naming conventions for
1. Adapter Service
2. Adapter Connection Factories
3. Routing Services
4. XSD Files
5. XSL Transformation Files
6. ...etc
Is there any oracle corporation provided naming conventions document on these? If so please let us know. Your quick help would be highly appreciated.
RegardsIf the names are meaningful (which will depend on what objects are in the different schemas) and the underlying architecture is reasonable, then the naming convention would be a good practice.
- How do the objects in the ABC schema relate to the objects in the ABC_ADMIN schema?
- What, exactly, does the _ADMIN suffix indicate?
My unfounded guess is that you have two related schemas because you're creating one schema that owns the objects and another schema that has restricted access to those objects (ideally just via procedures, functions, and views) for applications to use to log in. If that's the case, it's not obvious to me which of ABC and ABC_ADMIN would own the objects for the ABC application. But if you're actually separating the objects for other reasons, then _ADMIN may make perfect sense.
Justin -
Naming conventions to store automation testing scripts
Hi,
Can anyone provide the solution for Naming conventions to store automation testing scripts in oracle application testing suite?
Regards,
SairamHi Sairam
There are no naming conventions you can call them anything you like.
Regards
Alex -
Data Modeler - Naming Conventions
I was using Oracle Designer for several year.
This product could drive you crazy because sometimes, but the strength was in my opinion the datamodelling part.
It saved you a lot of time because you kept stuck to the logical model generated your relational model and had all scripts satisfying all naming conventions you needed.
In Data Modeler i really miss the naming conventions and can't understand some parts, sometimes somebody here can help me if i have overseen something or it is just not implemented.
Naming conventions as example:
We work with surrogate keys.
Two well known tables - Employees (abbreviation EMP), Departments (abbreviation DEP)
They have one relation 1:N one department has many employees
In Designer i would define the EMPLOYEE entity, would set the table-abbreviation, the attributes and the primary key.
The same with DEPARTMENT. I would design it WITHOUT any column for the foreign key constraint.
Then i would create a relation between this two tables.
Last step is to generate the relational model.
a) Designer automatically adds ID as surrogate key on every table (you could configure that, it was dependent on a domain)
b) it automatically adds the table abbreviation as prefix on every column (even here it's configurable)
c) it automatically adds the a foreign key column in the child table with the prefix of the master table (f.e. EMP_DEP_ID or DEP_ID if you prefer not to prefix every column... what i do)
It was really easy to get your scripts.
Things i don't understand in Data Modeler:
In a logical model you should design entities, attributes and relations and don't mess around with FK-columns.
Is there any support for surrogate keys? I don't wanna add an ID manually with every table.
In Data Modeler an additional COLUMN(!) is added with every Foreign key relation, i could live with that, but there is no way to tell
Data Modeler to prefix it automatically. The name can just be changed in the Relational View afterward.
P.S.
Surrogate Keys.... There are some pros and cons for/against this out there. I have seen a lot of Oracle Projects and in all except one i always had a surrogate key column. It really makes life
easier. In the one no-surrogate-key-project we began to add surrogate keys after a while...COLUMN(!) is added with every Foreign key relation, i could live with that, but there is no way to tell
Data Modeler to prefix it automaticallyLook at "General options>Naming Standard>templates" - you can define template for FK columns/attributes and then apply them for whole relational/logical model using "Apply Naming .." functionality from pop-up menu in the browser. For Logical model (FK attributes) - you also need to clear related setting at "General options>Logical>Keep as the name of originating attribute".
Templates are also used when objects are created, thus when new FK is created, then templates are used to generate name for foreign key and FK columns. Well you have to define table and column abbreviation in order to get them used in generated names - Re: Data Modeler: Naming
There is no support for surrogate keys in current release.
Philip -
Question about CEP Naming Conventions and or Standards
Hello,
CEP is new to the organization that I am working with. I have been asked to draft a few standards around CEP to help promote standardization and proper reuse of CEP artifacts. Can anyone share with me examples of CEP artifacts with a naming convention or their experiences with naming conventions around CEP in general. This is a living standards document for us. We plan on using CEP heavily going forward. Your experiences will help us start off on the right foot.
Thanks in advance,
JJE
Spelling Edited by: JJ.Everett on Sep 7, 2010 11:16 PMHi,
Oracle CEP supports reuse of components in several ways. For example, you can design your application as a set of modules that can be deployed independently (different teams can develop each module). Modules can register services, such as an event source or event consumer, and these services can be used by other modules. So, it's possible to plug modules developed by different teams of developers together and reuse them in different applications or environments. A component instance registers itself as a service when its advertise attribute is set to true in the Spring application context that defines a module.
A component implementation can also register a factory as a service that allows instances of the component to be created by other modules. Section 13.1.5 in the CEP Developer Guide describes this. http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14301/adapters.htm#CIHBHEDA
Hope that helps.
Regards,
Seth -
SAP Naming Conventions for DB Data Files
Hi Everyone!
We are about to install a SAP ECC 6.0 SR3 ABAP on Windows Server 2008 (R2) & SQL Server 2008 SP1 and we want to name the DB data files as follows:
<sid>DB_Data_001.MDF/NDF
Do you see any problem with this or think this could lead to a problem in the future?
We were unable to find a SAP note or SAP recommendation about this, we only found SAP Note 27428 but itu2019s for Oracle.
Thanks in advance!
Best Regards,
NicolasHi Nicolas,
I thought about all corners where this could possibly lead to a problem (e.g. monitoring, DB13, ...) but couldn't think of a single report or transaction where this would cause problems.
To the database itself the names of the files do not matter at all and in the SAP transactions the datafiles are only read to display them in monitoring transactions like DB02 or RZ20. These transaction do not expect a certain naming convention so I don't see anything that would count against using different filenames.
Regards,
Beate Grötschnig -
Naming Conventions in OLAP/AWM
Hi,
We are in the process of creating documentation guidelines as well as the documentation for our Oracle OLAP System. It would be of great help if the forum can share ideas or pointers to the kind of naming conventions we can establish for our Analytic Workspaces, Dimensions, Dimensions Levels, Cubes, Measures and other elements of the OLAP repository.
Our idea is to come out with a comprehensive, formal (maintainable) documentation of our Oracle OLAP system.
Any pointers to existing documents/resources in this area would be highly appreciated.
Thanks,
PiyushSatish,
thank you for quick reply.
this link doesnt work;
http://media.sdn.sap.com/html/submitted_docs/Implementation_Roadmap_XI/index.htm .
I have downloaded ASAP zip file from one of the link,if you think this is not useful then its fine otherwise can you give me the correct one.
thanks.
Babu -
Custom naming convention with File Adapter
Within my BPEL process, I am using File Adapter and writing out a file. The current naming convention only all some static string with either a sequence (%SEQ%) or some sort of system timestamp. I wonder if it is possible to use some runtime data (data value within the Process Variables) as part of the file name being written out.
Hi, the file/FTP adapters support file metadata such as filename and directory to the BPEL process and exclude the payload. set the UseHeaders parameter to true in the file adapter WSDL.
*<jca:operation*
PhysicalDirectory=""
ActivationSpec="oracle.tip.adapter.file.inbound.FileActivationSpec"
PhysicalArchiveDirectory=""
DeleteFile="true"
IncludeFiles=""
PollingFrequency=""
MinimumAge="0"
OpaqueSchema="false" >
UseHeaders="true"
*</jca:operation>*
thanks. -
Data file naming convention!
Hi,
My question might be silly but I am not sure about the naming convention of my control/log/dbf file. I am oracle 11g and asm is configured with OMF enabled. When I checked the filename, I am getting filename with some numbers. What is that number refers to.
ASMCMD> ls
EXAMPLE.265.790927371
ONKAR.267.791219239
SYSAUX.257.790927221
SYSTEM.256.790927219
UNDOTBS1.258.790927221
USERS.259.790927223
ASMCMD> Could anyone please tell me what these numbers represents? I tried google but did not got any reasonable answers.
-Onkarsybrand_b wrote:
I just searched the documentation on your behalf (as you know, the documentation is that what most people here refuse to read and avoid at all cost)
and came up with http://docs.oracle.com/cd/E11882_01/server.112/e25494/omf003.htm#ADMIN11492
by simply typing 'Oracle Managed Files' in the search bar.
I think ASM naming is different from OMF. The default OMF % formats are not used with the fully qualified name. its an ASM system generated dotted pair in the format
+diskgroup/dbname/filetype/filetypetag.file.incarnation
http://docs.oracle.com/cd/E11882_01/server.112/e18951/asmfiles.htm#i1010333
EDIT: cross post with previous poster. same info.
Edited by: deebee_eh on Aug 13, 2012 11:22 AM -
NAMING CONVENTION OF X$ TABLES IN 10GR2
Hi All
I want to know if oracle follows any
naming convention to x$ tables ...and also for the column
names .if yes what is it.
Thanks in Advance.....Well, I would second to Hemant that for these structures ( they are not tables exactly) , whatever convention Oracle has, its with it only. That said, the tables basically are the representations of the layers that work with the Kernel of Oracle. So the table names follow or represnt the layer on which they are based on. For example, X$KCBWDS is Kernel Cache(cache layer) Buffer Working Set Descriptor. So would be the column names within them , representing what the layer is doing .
In anyways, its not really important to know the convetion, yes to some extent meanings of these strucutres may help butthat too is limited to some extreme cases only.
HTH
Aman.... -
Hi Folks,
I am looking for Oracle BPEL naming convention and coding standards. Tried to search at oracle site as well as on internet but didnt find anything.
Could you please help me with some document/link for naming convention and coding standards.
Thanks
AmitHi Amit,
Was able to pull this info from my inrenal repo..thanks to the people who made this :)
Naming Convention: ActivityDescription_suffix_
* ActivityDescription should use camel casing.
copyLeadInfo_asgn
Process Activities
Services
ESB Services
Item suffix Item suffix Item suffix
Assign asgn AQ Adapter aq Routing Service rs
Compensate cmpnst Database Adapter db SOAP Service ss
Decide dcd Decision Service dsvc Custom Adapter ca
Email eml EJB Web Service ews
Empty ept File Adapter fl
Fax fax Java Web Service jws
Flow flw JMS Adapter jms
FlowN flwn MQ Adapter mq
Human Task hmntsk Oracle Applications oraapps
Invoke invk Partner Link pl
Java Embedding jvEmbd FTP Adapter ftp
Pager pgr
Pick pck
Receive rcv
Reply rply
Scope scp
Sequence sqn
SMS sms
Switch swth
Terminate trmnt
Throw thrw
Transform xfrm
Voice vc
Wait wt
While whl
Sensor Actions snrctn
Sensor Activity snsrcvt
Sensor Variable snsrvrbl
Fault Sensor snsrflt
Also, you can refer : http://my.oracle.com/portal/page/myo/emea/Communities/Technology/EMEA_SOA_Integration/KA
Hope it helps!
Regards
Anirudh Pucha -
Naming Convention (Template) - Arc Constraints & Triggers
Hi
Using OSDDM 3.3.
There does not appear to be anywhere that the naming convention of Arc Constraints and their corresponding triggers can be specified.
This is touched on in discussion https://forums.oracle.com/message/9828101#9828101 I think.
If that thread is about this, I would like to add my vote to an enhancement request.
If not, then this is my request for such an enhancement request.
Thank you & RegardsThis is not true, there is a set of schemas that Data Pump knows are really not user schemas and therefore are not exported. Most contain sys, but they don't have to.
If you created a schema called sysxyz, it would be exported.
Dean -
Can default target naming convention be altered?
Dear All
We are using Oracle EM Grid Control 11gR2 to manage databases in the environment which hosts about 60+ databases in 11.0.1.7, 11.0.2.1 and 11.0.2.2 versions..
More often than not due to application restrictions, we are forced to use the same DB_NAME for many databases. Atleast 45+ of them have the same DB_NAME running on different machines with different HOSTNAME....
Each time we add a new target after installing the agent on the new target machine we see the Grid control identify this database using DB_NAME. Since often we have the same value for DB_NAME for the database, we happen to first delete the target identified by GRID after agent installation. Later, we manually add the target as HOSTNAME_DB_NAME and thus we are identifying them seperately from Grid Control Console..
At this point, I was wondering if there is some thing that could work around on the OEM Grid so that every time a target is added, the agent instead of supplying the DB_NAME would automatically supply HOSTNAME_DB_NAME... I did search on net and am not successful yet..
Meanwhile I thought I could post this query here and get your views or ideas... hopefully if you happened to come across such situation and share your experiences.. it would help..
Many thanks in advance.
Regards!
Sarat.Hello Sarat,
I could direct you to the perl script that is used when discovering new targets and let you modify the default naming convention, however:
- This is not Oracle supported !
- This will result in issues not being able to recover a database using OEM GC. At least this was my experience with OEM GC 10.2.0.3, pretty sure this will be the same in OEM GC 11.1
I would choose to use unique naming for your database in your GRID. (Thi is probably not what you are waiting for...)
Regards
Rob
http://oemgc.wordpress.com
Maybe you are looking for
-
Oracle 8.1.7. client and 2000 Pro SP3
Has anyone experienced any problems using/installing 8.1.7 client on a workstation running 2000 pro with service pack 3 installed? It seems that everytime I try to install on a workstation with SP3 the installation refuses to start. Any ideas?
-
X11/xterm: can't launch from terminal in Tiger 10.4.11 PPC
[Copied over from another part of this forum (wrong place)] I have set up my .profile PATH so that 'which' finds xterm via the terminal command line, but invoking 'xterm' gets the response: xterm Xt error: Can't open display: What do I need to config
-
Sales tax exempt indicator?
Is there an indicator in Project Systems that marks a project as "sales tax exempt"? We have certain projects where we are exempt from paying sales tax for materials and we would like to mark these projects as Exempt. I don't see any indicators in
-
How can you post MP3's on your web site to different forums
I want to attach MP3's to different web sites....like this example. http://www.gearslutz.com/board/high-end/137086-cm7-gt-2247-le-samples.html I was told you have to put your MP3's on a web site and then attach the URL to the comunity forum you want
-
Doubt in Multiselection in a table
Hi All, I have a table and have to to multiselection.While doing the multiselection I have to pass the few things for the selected rows to a BAPI which will process and give the output accordingly. In an action handler I am writing the following code