How to change the datatype in the oracle table?
Hi,
I need to change the datatype of the column in Oracle table. That column contains some data. I do not want to loose those data.
For altering a table/column condition are:
1. either table should not contain any data.
2. either that column should not contain any data.
Please suggest how i can handle this situation.
Thanks.
Hello,
Suppose you have currently datatype of column as VARCHAR and you want to convert it in NUMBER. Do following
1-Add another column with NUMBER datatype in your table.
ALTER table tablename
ADD testcolumn NUMBER;2-Update your actual column data to this test column.
UPDATE tablename
SET testcolumn = actualcolumn;
COMMIT;3-Update your actual column data to null;
UPDATE tablename
SET actualcolumn = NULL;
COMMIT;4-Change Datatype of actual column.
ALTER table tablename
MODIFY actualcolumn NUMBER;5-Update actualcolumn to testcolumn
UPDATE tablename
SET actualcolumn = testcolumn;
COMMIT;
please mark if it help you or correct
Regards,
Danish
Similar Messages
-
How to change the oracle's home page to show our custom message.
Hi,
Can we anyway change the oracle's home page to show our own messages,if yes then how can we do it.Ram,
Can you reply on this thread:
How to introduce html code in the <head> tag of an OAF page
--Mukul -
How to change the Oracle Server Hostname
Good Day every one,
Am working on Oracle Application 12.1.3
And Database 11.2.0.3
And OS RedHat linux 6.1
I want to change the Server host name how can I do this in simple steps ?
Is there is any pad impact on my server or application ?
RegardsPlease also see:
How to change the hostname and/or port of the Database Tier using AutoConfig (Doc ID 338003.1)
How to change the hostname of an Applications Tier using AutoConfig (Doc ID 341322.1)
Or, use Rapid Clone.
Rapid Clone Documentation Resources For Release 11i and 12 (Doc ID 799735.1)
Cloning Oracle Applications Release 12 with Rapid Clone (Doc ID 406982.1)
Thanks,
Hussein -
How to change the Oracle logo in OBI 11.1.5
I gone through some threads but i didn,t find some paths they specified in obi 11.1.5 version.and i went through the Oracle white paper PDFand some forums to change the skins and look & feel...
But frankly i didn,t get that much idea ...
and am new to OBI...
Can any one please suggest me in the detail like which path i need to copy and change the logo as per the Oracle whitepaper PDF.http://www.rittmanmead.com/2010/12/oracle-bi-ee-11g-styles-skins-custom-xml-messages/
http://www.oracle.com/technetwork/middleware/bi/customizing-oracle-biee-11g-176387.pdf
i GONE THROUGH ABOVE LINKS .. BUT VAN U PLEASE GIVE ME THE DETAIL STEPS. -
How to change the fact table in backend query
Hi
I have a criteria where f1 is the fact table comming in backend query, how can I change/modify so that if i select same criterian it should come different fact table f2.
Please suggest.Hi Hussain,
I have a measure 'po amount' which is comming from two fact tables cost_f and line_f from physical layer. I have a implict fact column in presentation layer on a column(internal-row count) from cost_f table.
Now, when I take only 'po amount ' in criteria, in the backend query it should have cost_f table, but i am seeing line_f table.
The reason I am checking in this direction is.
I have criteria with 4 columns and measure column 'po amount' and run the result it is fecting from line_f table.
The same 4 columns and measure column 'po amount' and one new column 'cost center' is added to the critera the fact table changes to cost_f table.
In both the cases the result should result from cost_f table, not sure why line_f is comming in backend query.
Please suggest. -
How to change the db_name of the database in oracle 9i
Please Tell me
How to change the db_name of the database in oracle 9i
regardsALTER DATABASE RENAME oldname TO newnameThis is not a valid command.
@OP, you may want to check into the NID Utility. -
Using Oracle 11g How to change the Log mode from NoArchieve to Archieve Log
Hi,
I currently using oracle 11g How can I change database from NoArchivelog node to Archivelog node using spfile.
And where exactly the spfile will be located?
My instance is EPM11 in my local oracle is present in D folder where can i found the pfile?
In this path i found 1 pfile in my Local Machine
"D:/Oracle/Product/11g/admin/epm11/pfile" .I have added the following commands in this pfile
# Archive Log Destinations -benr(10/15/04)
log_archive_dest_1='location=/u02/oradata/cuddle/archive'
log_archive_start=TRUE
Then i have ran the shutdown command.
Database instance is showtdown.
After that i am not able to perform startup.
So please suggest me how to change the mode using SPfile and tell me the path where spfile and pfile should be located?
And also do i need to set the "Oracle_Home" path in my environment variables"
Thanks In Advance,
Chandanauser11225122 wrote:
Hi,
I currently using oracle 11g How can I change database from NoArchivelog node to Archivelog node using spfile.
And where exactly the spfile will be located?
My instance is EPM11 in my local oracle is present in D folder where can i found the pfile?
In this path i found 1 pfile in my Local Machine
"D:/Oracle/Product/11g/admin/epm11/pfile" .I have added the following commands in this pfile
# Archive Log Destinations -benr(10/15/04)
log_archive_dest_1='location=/u02/oradata/cuddle/archive'
log_archive_start=TRUE
Then i have ran the shutdown command.
Database instance is showtdown.
After that i am not able to perform startup.
So please suggest me how to change the mode using SPfile and tell me the path where spfile and pfile should be located?
And also do i need to set the "Oracle_Home" path in my environment variables"
Thanks In Advance,
Chandanaremove log_archive_start=TRUE from pfile (it is depricated from 10g onwards)
SQL>startup nomount pfile="D:/Oracle/Product/11g/admin/epm11/pfile/initYOUR_SID_NAME.ora"
SQL>Create spfile from pfile="D:/Oracle/Product/11g/admin/epm11/pfile/initYOUR_SID_NAME.ora"
SQL>SHUT IMMEDIATE;
SQL>STARTUP MOUNT
SQL>ALTER DATABASE ARCHIVELOG;
SQL>ALTER DATABASE OPEN;
SQL>ARCHIVE LOG LIST;
SQL>SHOW PARAMATER SPFILE;
YOU WILL FIND THE LOCATION OF SPFILE
SQL> -
How to change the Schema (DB2, Oracle) in CommandTable at run time
Dear all,
I have a problem as below:
I have created report with CommandTable, then I am using Java and CRJ 12 to export data. So how to change the SCHEMA in CommandTable?
Please help me on this.
Ex: CommandTable is SELECT * from SCHEMA.TableA, SCHEMA.TableB
Thanks,
NhaDear Ted,
I want to change DataSource, it means the report will be load and change connection at run time (using CRJ SDK) and i want to change the SCHEMA.Tablename in CommandTable in report.
I also use the parameter to do it, but it can not be at run time, just correct when designing.
Could you please help me on this. You can post the code if any.
Thanks,
Nha -
How to change the ARCHIVELOG / NOARCHIVELOG mode in Oracle 10g
Hi
how How to change the ARCHIVELOG / NOARCHIVELOG mode in Oracle10g in SQLPLUS ?
Many thanks.Steps :
0 - change SPFILE
ALTER SYSTEM SET log_archive_dest = '/oracle9i/archive/tmpr' SCOPE =SPFILE;
ALTER SYSTEM SET log_archive_start = TRUE SCOPE =SPFILE;
ALTER SYSTEM SET log_archive_format = 'tmpr_%s.arc' SCOPE =SPFILE;
1 - shutdown immediate
2 - startup mount
3 - alter database archivelog;
4 - alter database open
Note : to verify if is ok type :
SQL> archive log list; -
How to change the OraSSO login link in webcache/load balance
Hi
we have 10gAsR1 installed as a Portal instance. We have 6-server
load balancer => webcache as loadbalancer (listening port 80)
Wb ch1 and wb ch2 => webcache (listening port 7777)
portal1 and portal2 => Portal listening 7778
infra =>Infrastruture with repository Portal/Oracle SSO (listening 7777)
This set up is working fine for our intranet setup, now we need to open this for couple of external clients. Well initially we need to open on the load balancer server on port 80 for external team to access, it works fine when we make it publc access.
Now when we need to make it SSO (siteminder) enables, when users click on login link it first goes oracle sso then it internally redirects the page to site minder sso.
Well, I have noted that the sso server details are mentioned in global setting sso/oid details. Since we need to open this for external client we have to add a DNS entry for this so that we can allow its access over firewall..
Now I have made DNS name change at my infrserver level, now I need to update the change at the load balancer server (where wheb chache is running).
Any one know how to chang the URL at load balancer.
I am struck at this point please suggest how should i proceed..
Thanks,Extract from Personalization Guide - Page Footer - Personalization Considerations
* If you wish to personalize the URL that points to the Privacy Statement for a page that displays a standard Copyright and Privacy (that is, its Auto Footer property is set to true), set the Scope to OA Footer, in the Choose Personalization Context page of the Personalization UI.
* If you wish to personalize the URL that points to the Privacy Statement for a page that displays a custom Copyright and Privacy (that is, its Auto Footer property is set to false), set the Scope to Page in the Choose Personalization Context page of the Personalization UI. In the following Page Hierarchy Personalization page , identify and personalize the Privacy page element. -
How to change the default admin password for IAS/UDDI
Using "OracleAS UDDI Registry" 10g Release 2 (10.1.2)
http://docs.oracle.com/cd/B15904_01/web.1012/b14027/regwsuddi.htm
How to change the default password
ias_admin/ias_admin123
http://xxx.xx.xxx.xx/uddi/publishingHello NJ,
I tried your solution and its a very good workaround for the workbooks stored in the Database, but when i open workbooks from file system then Discoverer defaults the export path to the Directory from where we have opened the workbook.
My clients are having most of their workbooks stored in File system & stored at different locations. So i wonder if there is just one common solution if possible?
Thanks -
How to change the default servcie port number to be checked for the IPS sig
Dear
i have an AIP-SSM (IPS) installed in a an ASA firewall.
i have configured an access-list in the firewall to forward the traffic coming from the internet toward the internal server to be checked by the IPS module.
but the case is that the services have to be checked is not the default services port numbers.
http port is 8081
oracle port is 2006
and many other services.
the question now, is how to change the default service number in the IPS in order to be checked by the corresponding service signatures?
ThanksYou would set those as part of the signature variables.
http://www.cisco.com/en/US/docs/security/ips/6.1/configuration/guide/cli/cli_signature_definitions.html#wp1040009 -
How to change the default element tag using dbms_xmlgen
here is my code that generate output for purchase order data. I followed the syntax shown in xml db developer guide.
I am getting the results but element tags are CAPS letters( As the coloumn names in the type defenitions are stored in CAPS in Oracle). but I need to show in small letters as per my requirement.
can anyone help me how to change the default tag names for elements.
==================================HERE IS THE CODE==================
DECLARE
qryCtx DBMS_XMLGEN.ctxHandle;
result CLOB;
BEGIN
qryCtx := DBMS_XMLGEN.newContext
('SELECT PODL_H_T
( CLOSEDDATETIME ,
COMPANY ,
CAST(MULTISET
(SELECT LINENUMBER ,
COMPANY ,
PURCHASEORDERID ,
ITEM ,
QUANTITYUM ,
TOTALQUANTITY
FROM cpo_wms_podl_LINES
WHERE PURCHASEORDERID = PH.PURCHASEORDERID) as PurchaseOrderDetailList
FROM cpo_wms_podl_HEADERS PH ');
-- now get the result
DBMS_XMLGEN.setRowSetTag(qryCtx, 'Receipts' );
DBMS_XMLGEN.setRowTag(qryCtx, 'PurchaseOrder' );
result := DBMS_XMLGEN.getXML(qryCtx);
INSERT INTO temp_clob_tab VALUES (result);
DBMS_XMLGEN.closeContext(qryCtx);
END;
-- select * from temp_clob_tab
===========create type script=====================
cpo_wms_podl_HEADERS
CREATE or replace TYPE PurchaseOrderDetail AS OBJECT(
LINENUMBER VARCHAR2(400 BYTE),
COMPANY VARCHAR2(400 BYTE),
PURCHASEORDERID VARCHAR2(400 BYTE),
ITEM VARCHAR2(400 BYTE),
QUANTITYUM VARCHAR2(400 BYTE),
TOTALQUANTITY NUMBER
create type PurchaseOrderDetailList as table of PurchaseOrderDetail
create table temp_clob_tab(result CLOB)
create type podl_HEADERS_list_t as table of podl_HEADERS_t
CREATE or replace TYPE PODL_H_T AS OBJECT
CLOSEDDATETIME DATE,
COMPANY VARCHAR2(400 BYTE),
CREATEDDATETIME DATE,
PURCHASEORDERID VARCHAR2(400 BYTE),
SHIP_TO VARCHAR2(400 BYTE),
linelist PurchaseOrderDetailList
)but I need to show in small letters as per my requirement.add alias column names in double quotes as in
SQL> select dbms_xmlgen.getxmltype('select dname "DeptName", loc "Location" from dept') dept_xml from dual
DEPT_XML
<ROWSET>
<ROW>
<DeptName>ACCOUNTING</DeptName>
<Location>NEW YORK</Location>
</ROW>
<ROW>
<DeptName>RESEARCH</DeptName>
<Location>DALLAS</Location>
</ROW>
<ROW>
<DeptName>SALES</DeptName>
<Location>CHICAGO</Location>
</ROW>
<ROW>
<DeptName>OPERATIONS</DeptName>
<Location>BOSTON</Location>
</ROW>
<ROW>
<DeptName>SALES</DeptName>
<Location>MUNICH</Location>
</ROW>
</ROWSET>
1 row selected. -
How to change the color of Menu links in obiee
Does anyone knows how to change the colors of Menu links in obiee. With menu I mean the menu links default right top (Search, homepage, Catalogus, Dashboards, new, Open). This should be set in skin and style files, not? I searched a lot. I could not find It. It is now Oracle blue, we want to change this.
obiee 11.1.1.5.
ThanksYou have to customize portal banner and portal content CSS files as needed in OBIEE server.
below links will guide u but will will not tell you exactly but your req can be done by customizing portal content and portal banner CSS files. try to identify the exact code using firebug in mozilla.
http://www.rittmanmead.com/2009/04/customizing-obiee-dashboard-banners/
Customization of login page, banner,logo in obiee11g
Thanks
Jay. -
How to change the 'Default operating mode' of a mapping on the repository and not from the client
Hi everybody,
I am using OWB 11.2.0.3 and under the mapping's configuration property, I have the necessity to change the Run time parameter "Default operating mode" to SET_BASED in almost all my mappings.
Because I have 745 mappings in which the Default operating mode is different from SET_BASED, instead to open 745 times the 'Configure' and update manually the value, is there a way to update safely these values (with an oracle predefined script) directly on the repository ?
I know that exists a view called CMPSTRINGPROPERTYVALUE_V based on a table called CMPSCOPrpClasses, but changing this table it's very complicated for me because contains only keys and then I don't know in which way is connected with all the other structures....
If somebody knows a method more efficient to do these updates on the repository and not from OWB client I will appreciated it!
Thanks in advance
AlessandroUrgent... help!!! Thanks
in short, my server log says transaction access mode is "read only", so my calling home.create() always triggers a transaction rollback. How to change the access mode to "read write"?
Is possible to work out through one of the descriptor files? Or ini settings of the underlying pointbase database? Or any other way around? -
How to change the midp version in ktoolbar of wireless toolkit 2.1
Hi
How to change the version of midp in ktoolbar of wireless tool kit 2.1
though i tried to change the platform by selecting midp1.0 from settings
dialog box iam geeting alert:BadVersion Error
and the application is terminated abruptly
do i need to change any configuration files
please suggest me
as it is very urgentThe version of Java inside the database? If so - Not recommended at all ... the environment is NOT the same as your grandfathers JRE and there are a few noteworthy conditions.
How much of the Oracle Java Developer's Guide have you reviewed? http://www.oracle.com/pls/db102/to_toc?pathname=java.102%2Fb14187%2Ftoc.htm&remark=portal+%28Books%29
Maybe you are looking for
-
Refresh only page item while submitting data from the popup window
Hi All, I'm pretty new to Apex ..... I have a form with text items as first few entries and then a radio button list and few text items again. On selecting certain radio button I have a popup window which acts as an interface for the next text item i
-
My g62 was down for 2 months while I waited for money to replace the hard drive and when I replaced it with a 500 gb hitatchi it will no longer power on.. It charges fine but the power button does nothing when pressed whether the battery is in or out
-
I'm making a video play that uses XML to go to the cue points but I just can't get the xml and actionscript to work together...
-
Hi, I am trying to load develop BI publisher report in OAF. I have tried below links to do but receving 'Error(39,41): identifier DocumentHelper not found' http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework http://oracle-
-
Hi, Please let me know can we present the Balance Sheet in the XBRL Format in ECC 5.0 . If yes please let me know what would be the procedure for the same. Regds Pushpi