External procedure with Pro*C in it
I have some C functions that I have compiled into a shared library on Unix.
One of the functions contains a SQL statement to insert into a table, so I
compile the file with Pro*C. It compiles fine. I have another C program
that calls the function within my shared library. It runs fine and the shared
library does insert the data into the table.
I create an Oracle library that points to the shared library, then create a stored
function in the database that executes the routine in the shared library. At
this point, everything seems in place. We have been using external procedures
for a while, and they seem to work OK. This is the first one we have, though that
has Pro*C code in it.
When I execute the stored function to execute my Pro*C routine, I get the errors
ORA-06520: PL/SQL: Error loading external library
ORA-06522: Unresolved external.
This shared library is the first one that we are using that has Pro*C in it. The
documentation doesn't say anything about being able to use Pro*C routines
as external procedures; but it doesn't say you can't. Am I attempting the impossible?
If not, what am I missing?
null
Is your library object pointing to one shared library and in turn function in this library is 'looking' to another shared library? if so, that is not allowed
Similar Messages
-
External Procedure with Windows "Handle" datatype
hi all,
I want to create a external procedure which use windows kerne32.dll library and GetFileSize function which is in dll.
http://msdn.microsoft.com/en-us/library/aa364955(v=vs.85).aspx
as you can see in this link , GetFileSize has two parameter, first one is a HANDLE type, how can I assign this parameter ? String is not working.
DWORD WINAPI GetFileSize(
__in HANDLE hFile,
__out_opt LPDWORD lpFileSizeHigh
Create Or Replace Function GetSize (FileName Varchar2, P_Value in out pls_integer) Return binary_double As
Language C Library Mylib Name "GetFileSize"
parameters (FileName by reference String, P_Value int, return double );
Declare
X1 number ;
X2 Pls_Integer;
X Number;
Begin
x2 := 40000000;
X1 := Getsize('C:\b.sql', X2);
X := X1;
dbms_output.put_line('x: ' ||x);
End;
/I allways getting zero value, file is exists and its size is bigger than zero.
what am i doing wrong?I don't know, Why you are using kernel32.dll to know the file size. This can be done very easily using UTL_FILE.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> CREATE OR REPLACE FUNCTION utl_filesize(pi_dir_name IN VARCHAR2,
2 pi_file_name IN VARCHAR2)
3 RETURN NUMBER IS
4 file_size NUMBER;
5 blk_size BINARY_INTEGER;
6 fexists BOOLEAN;
7 BEGIN
8 UTL_FILE.fgetattr(pi_dir_name,
9 pi_file_name,
10 fexists,
11 file_size,
12 blk_size);
13 RETURN file_size;
14 END utl_filesize;
15 /
Function created.
SQL> SELECT utl_filesize('SAUBHIK','test2.csv') "Size in Bytes" FROM dual;
Size in Bytes
61
SQL> SELECT utl_filesize('SAUBHIK','Winter.jpg') "Size in Bytes" FROM dual;
Size in Bytes
105542
SQL> Now, coming to your actual question.
This is a demo, How to call kernel32.dll from PL/SQL.*
By the way, I have copied kernel32.dll from C:\WINDOWS\system32 to C:\oracle\product\10.2.0\db_3\bin
My listener.ora setup
SID_LIST_LISTENEREXTPROC =
(SID_LIST =
(SID_DESC =
(PROGRAM = extproc)
(ENV = "EXTPROC_DLLS=ONLY:C:\oracle\product\10.2.0\db_3\bin\kernel32.dll")
(SID_NAME = extproc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_3)
)My tnsnames.ora setup
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)A little verification.
LSNRCTL> stop LISTENEREXTPROC
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=extproc)))
The command completed successfully
LSNRCTL> start LISTENEREXTPROC
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 10.2.0.3.0 - Production
System parameter file is C:\oracle\product\10.2.0\db_3\network\admin\listener.o
a
Log messages written to C:\oracle\product\10.2.0\db_3\network\log\listenerextpr
c.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\extprocipc
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=extproc)))
STATUS of the LISTENER
Alias LISTENEREXTPROC
Version TNSLSNR for 32-bit Windows: Version 10.2.0.3.0 - Prod
ction
Start Date 21-JAN-2011 17:32:26
Uptime 0 days 0 hr. 0 min. 3 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle\product\10.2.0\db_3\network\admin\listener.
ra
Listener Log File C:\oracle\product\10.2.0\db_3\network\log\listenerext
roc.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\extprocipc)))
Services Summary...
Service "extproc" has 1 instance(s).
Instance "extproc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL> exit
C:\Documents and Settings\Administrator>
C:\>tnsping EXTPROC_CONNECTION_DATA
TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 21-JAN-2
011 21:53:10
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Used parameter files:
C:\oracle\product\10.2.0\db_3\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)
(KEY = EXTPROC1))) (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO)))
OK (70 msec)
C:\>Now, the actual codes.
SQL> CREATE OR REPLACE LIBRARY kernel32 AS 'C:\oracle\product\10.2.0\db_3\bin\kernel32.dll';
2 /
Library created.
SQL> CREATE OR REPLACE FUNCTION CreateFile (FileName VARCHAR2 --1
2 ,p_DesiredAccess BINARY_INTEGER --2
3 ,p_ShareMode BINARY_INTEGER --3
4 ,p_SecurityAttributes BINARY_INTEGER --4
5 ,p_CreationDisposition BINARY_INTEGER --5
6 ,p_FlagsAndAttributes BINARY_INTEGER --6
7 ,p_TemplateFile BINARY_INTEGER )--7
8 Return BINARY_INTEGER
9 IS EXTERNAL
10 LIBRARY kernel32 Name "CreateFileA"
11 PARAMETERS (FileName STRING
12 ,p_DesiredAccess long
13 ,p_ShareMode long
14 ,p_SecurityAttributes long
15 ,p_CreationDisposition long
16 ,p_FlagsAndAttributes long
17 ,p_TemplateFile long
18 ,return long );
19 /
Function created.
SQL> /* This is for closing the handle after use. */
SQL> CREATE OR REPLACE FUNCTION CloseFile (p_FileHandle BINARY_INTEGER)
2 Return BINARY_INTEGER
3 IS EXTERNAL
4 LIBRARY kernel32 Name "CloseHandle"
5 PARAMETERS (p_FileHandle long, return long);
6 /
Function created.
SQL> /* This is the main function for getting size */
SQL> CREATE OR REPLACE FUNCTION GetSize (p_FileHandle BINARY_INTEGER,
2 p_FileSizeHigh IN OUT BINARY_INTEGER)
3 RETURN BINARY_INTEGER
4 IS EXTERNAL
5 LIBRARY kernel32 NAME "GetFileSize"
6 PARAMETERS (p_FileHandle long, p_FileSizeHigh long, return long );
7 /
Function created.
SQL> set serverout on
SQL> DECLARE
2 v_FileSize BINARY_INTEGER;
3 v_FileSizeHigh PLS_INTEGER;
4 v_FileHandle BINARY_INTEGER;
5 v_filename VARCHAR2(500) :='C:\test2.csv';
6 v_dummy BINARY_INTEGER;
7 BEGIN
8 v_FileSizeHigh := 400000000;
9 v_FileHandle:=CreateFile(v_filename -- File name
10 ,0 -- Type of access required (read/write ect)
11 ,0 -- disable share mode
12 ,0 --no securoty attribute
13 ,3 -- Means Open existing
14 ,128 --080h, File attribute normal.
15 ,0); --7
16 v_FileSize := Getsize(v_FileHandle, v_FileSizeHigh);
17 DBMS_OUTPUT.put_line('File Size in Bytes: ' ||v_FileSize);
18 v_dummy:=CloseFile(v_FileHandle);
19 END;
20 /
File Size in Bytes: 61
PL/SQL procedure successfully completed.
SQL>
SQL>
SQL> DECLARE
2 v_FileSize BINARY_INTEGER;
3 v_FileSizeHigh PLS_INTEGER;
4 v_FileHandle BINARY_INTEGER;
5 v_filename VARCHAR2(500) :='C:\Winter.jpg';
6 v_dummy BINARY_INTEGER;
7 BEGIN
8 v_FileSizeHigh := 400000000;
9 v_FileHandle:=CreateFile(v_filename -- File name
10 ,0 -- Type of access required (read/write ect)
11 ,0 -- disable share mode
12 ,0 --no securoty attribute
13 ,3 -- Means Open existing
14 ,128 --080h, File attribute normal.
15 ,0); --7
16 v_FileSize := Getsize(v_FileHandle, v_FileSizeHigh);
17 DBMS_OUTPUT.put_line('File Size in Bytes: ' ||v_FileSize);
18 v_dummy:=CloseFile(v_FileHandle);
19 END;
20 /
File Size in Bytes: 105542
PL/SQL procedure successfully completed.
SQL> Verification.
C:\>dir test2.csv
Volume in drive C has no label.
Volume Serial Number is 6806-ABBD
Directory of C:\
12/15/2010 01:35 PM 61 test2.csv
1 File(s) 61 bytes
0 Dir(s) 3,405,336,576 bytes free
C:\>dir Winter.jpg
Volume in drive C has no label.
Volume Serial Number is 6806-ABBD
Directory of C:\
10/11/2010 05:27 PM 105,542 Winter.jpg
1 File(s) 105,542 bytes
0 Dir(s) 3,405,336,576 bytes free
C:\> -
External procedures and C structures
Hello:
I have the requirement to write a plsql wrapper to an external shared library provided by third party.
I want to be able to use the library's calls from oracle.
I was thinking of using external procedure calls
The declaration of C structures in header files looks like this (with varying number of fields):
typedef struct
char Data1[10];
char Data2[12];
unsigned char Data3[2];
char Data4[224];
} TData;My doubt is how to map these structures on the oracle side.
I wanted to create user defined types to map the C structs.
I have found examples and been able to work external procedures with scalar datatypes (chars, dates, numbers) and collections (tables of chars, dates, numbers), but havent' been able to find/to work an external procedure who passes an object type.
Is the approach of using object types correct?
May anyone provide an example of this?
Any suggestion welcome,
AndreaYou can create the Object/types in Oracle and use OTT utility to create persistency related code.
How ever I recommend to use similar table rather than using Objects . Since objects are costly in RDBMS. -
External procedure - configuration problem
Hi, I am trying to learn to use external procedures with PL/SQL but I have some problems with proper configuration.
I have created a *.dll library with class WriteStr containing one static method writeStr, which is supposed to write some text to file. Then, I've modified the (formerly default) listener.ora and tnsnames.ora files in the following way:
#listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = orcl)
(ORACLE_HOME = C:\Program-Files\Oracle11g\product\11.2.0\dbhome_1)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
SID_LIST_CALLOUT_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\Program-Files\Oracle11g\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\Program-Files\Oracle11g\product\11.2.0\dbhome_1\customlib\writestr.dll,C:\Program-Files\Oracle11g\product\11.2.0\dbhome_1\bin\oraclr11.dll,LD_LIBRARY_PATH=C:\Program-Files\Oracle11g\product\11.2.0\dbhome_1\lib")
CALLOUT_LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = extproc))
#tnsnames.ora
LISTENER_ORCL =
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = localhost)
(PORT = 1521)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORCL)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = IPC)
(KEY = extproc)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
I've double-checked that the path specified in EXTPROC_DLLS does contain the *.dll file (don't be misled by "Program-Files", it's just a junction), and that both listeners are running. Creating the library and procedure wrapper:
CREATE OR REPLACE LIBRARY library_write_string AS
'C:\Program-Files\Oracle11g\product\11.2.0\dbhome_1\customlib\writestr.dll'
CREATE OR REPLACE PROCEDURE write_string
(path VARCHAR2, message VARCHAR2) AS
EXTERNAL LIBRARY library_write_string
NAME "WriteStr::writeStr"
PARAMETERS (path STRING, message STRING);
is succesful, however, upon trying to invoke write_string('C:\TEMP\file.txt','Hello, world!'), I get ORA-06520 (error loading external library).
What could possibly be the problem here? (that it's something with configuration is just my wild guess, if you see no problems above then I might as well have messed up something inside my *.dll file).1. Didn't help.
2. Permissions set for all users on the *.dll file. Still nothing.
[Edit]
I tried setting EXTPROC_DLLS to ANY but nothing changed. In Oracle documentation, I found something about ENVS not being supported on Windows. Is it really the case? As far as I remember, the default listener.ora file contained an ENVS entry. If so, does any one know how to configure the listener properly?
Also, could somebody please comment on the following:
"Oracle Database 11g: PL/SQL Programing" says that external procedures require a separate listener. However, the default listener.ora file looks as follows:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\Program-Files\Oracle11g\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\Program-Files\Oracle11g\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ADR_BASE_LISTENER = C:\Program-Files\Oracle11g
My question is: will my computer explode when I append the path to my DLL to the EXPROC_DLLS variable? I know I could see for myself, but maybe there's a pretty good reason why I shouldn't use it like that. I'm a beginner so please don't laugh at me if what I'm saying sounds stupid. -
We have an external procedure running fine on 8.1.7 on VMS. After compiling and linking succesfully under 10.1.0, I get ORA-06521 PL/SQL: Error mapping function and ORA-06522: ERROR - vms_dlsym for file x, where x in the filename of the linked executable. Another external procedure that does not connect to the 10.1.0 database runs fine. What could be causing this error in Server 10.1.0 on VMS?
Thanks,
DaveHere is the code to create the function:
CREATE OR REPLACE FUNCTION f1
(h_file_name IN VARCHAR2)
RETURN BINARY_INTEGER
IS EXTERNAL
LIBRARY l1
NAME "f1"
LANGUAGE C
WITH CONTEXT
PARAMETERS
(CONTEST,
h_file_name string);
Here is the beginning of the Pro*C:
int f1(epctx, h_file_name)
OCIExtProcContext *epctx;
char h_file_name[70];
char h_line_txt [251];
int lineno;
FILE *fptr;
/* register the connection context ... */
EXEC SQL REGISTER CONNECT USING :epctx;
The function loads a flat file into the database. It is probably not related but are unable to SQLPLUS/ or SQLLDR/ into the database from an OS autheniticated account (get ORA-12547: TNS:lost contact.) Thanks for taking the time to look at this. There aren't many people trying this on VMS, I'd bet. -
How do i use an external display with my macbook pro?
How do I use an external display with a macbook pro?
Just buy the proper adapter cord, such as MiniDisplay port to HDMI for example. Plug it in and it will be automatically recognized. Use System Preferences > Displays to set options.
The display can Mirror your primary desktop or Extend the Desktop.
Regards,
Captfred -
How do I view an external display with my macbook pro closed?
How do I view an external display with my macbook pro closed? I am using a wireless keyboard and trackpad, and I would like to use a larger (Dell) monitor with my Macbook Pro closed.
Here are the rules for Clamshell mode:
http://support.apple.com/kb/HT3131 -
I am trying to connect my MacBook Pro (early 2011 w/ Intel HD 3000/ 384Mb) to an external display with a 2560x1440 resolution. Specifically, what cable/connections do I need to display at this resolution? I cannot get the display to work using a "Thunderbolt to HDMI" or a "Thunderbolt to DVI" connector. Note: I used both older and newer (uni-directional) HDMI cables on the first config, and a Dual-link DVI cable on the second config. Apple specs state this is possible ( support.apple.com/kb/SP619 ), but I am at a loss as to how this can be done. Thanks in advance for the help!
You use a Mini DisplayPort to either HDMI or dual-link DVI adapter. If that component doesn't work, something's wrong with either the cable or something else in the connection.
(112855) -
Can't boot from external HD with Leopard on MacBook Pro or PowerBook
I can't boot from an external HD with 10.5.5 Leopard on either my MacBook Pro or my PowerBook G4. I had a PowerBook G4 from which I could boot from either an external FW400 drive or an external FW800 drive. At some point, I stopped being able to boot from any HD, but I'm not sure if it was after upgrading to Leopard or not? Recently I just bought a MacBook Pro 15" and transferred all my files over from the PowerBook to the MacBook Pro during the install. However, even with the new computer, still cannot boot from an external drive. I have Leopard 10.5.5 running on both the external HD and the internal HD.
Is this a common problem? Anybody know how to fix it?
Thanks!That probably wasn't very clear was it? I have several ext. HD's, some with bootable systems and some just backups. One bootable disk was made with CopyCloner and the other was a clean format and only had an original install of the OS just to use for an emergency boot. They both booted just fine. Then at some point, they stopped being bootable. I have used the Control Panel "Startup" and also used the Option key boot and picked the bootable disk. Neither one boots anymore. It started doing this on the old PowerBook and then also refused to boot on the MacBook Pro. This is not the problem with the HD since it happens with any bootable HD. Something is going on at the system level and it was transfered from the PowerBook to the MacBook.
Thanks,
Bill -
Hi,
I have an early 2011 MacBook Pro. I use Premiere Pro CS5 to video edit on. It's fine but when it comes to grading it's nearly impossible on such a small screen.
I'd like to buy a 27inch external monitor (Asus, Samsung, Dell, whatever - haven't decided yet) for when I'm editing at work (which is most days). My query is regarding the resolutions. Obviously my MacBook Pro displays a resolution of 1280x800, so if I buy a monitor with a resolution of 2560x1440 for example, what gets displayed?
And also does the connecting cable make any difference? For example, if I'm connecting by Thunderbolt out to HDMI, then an HDMI to HDMI cable to the external monitor, what happens then? Or should I be using a Mini Display Port to Display Port connecting lead?
I guess all I really want to know is, will it work? But also, am I wasting my money buying an external monitor with a 2560x1440 resolution? Should I just go for one that's the same res at my MacBook Pro?
I've never really understood how these things all work!
Thanks in advance for anyones help.
Regards,
PhilI think it will work. You would need a mini displayport to (single link) DVI adapter to hook up that monitor.
Not sure what kind of problems you had with the ViewSonic but I'm guessing the Dell is probably a better monitor anyhow. -
Error while calling an procedure using an external table with C#.
Hello,
I am developping a scheduler application with Visual Studio 2010 (C#) to start my PL/SQL procedures.
Everything works fine with every procedure but one who is reading the content of an external table.
Strange thing is when i launch the same procedure with Toad, i have no problem, but when i launch it with my C# code :
OracleCommand cmdMET = new OracleCommand();
cmdMET.CommandText = "STG_AE.M_MET_S_EXT_DEFECT";
cmdMET.CommandType = CommandType.StoredProcedure;
cmdMET.Connection = con;
//OracleParameter retvalMET = new OracleParameter("retval", OracleDbType.Varchar2, 50);
//retvalMET.Direction = ParameterDirection.ReturnValue;
//cmdMET.Parameters.Add(retvalMET);
cmdMET.ExecuteNonQuery();
I've got this error :
ORA-29913: error in executing ODCIEXTTABLEFETCH callout
ORA-01722: invalid number
ORA-06512: at "STG_AE.M_MET_S_EXT_DEFECT", line 8
ORA-06512: at "STG_AE.MET_SRC", line 10
ORA-06512: at "STG_AE.MET", line 14
ORA-06512: at line 1
I can't figure out why it works when i launch it with Toad and why i get this error when launching it with C#... Any advice would be great !
Thanks!You're right!
Adding
string sql = "ALTER SESSION SET NLS_NUMERIC_CHARACTERS = \",.\"";
OracleCommand cmd = new OracleCommand(sql, con);
cmd.CommandType = CommandType.Text;
OracleDataReader dr = cmd.ExecuteReader();
solved the problem !
Thanks a lot =) -
My 2007 Macbook pro Intel Core 2 Duo Processor Speed 2.33 GHz has power issues with one or some of my USB powered devices. Last night I could not back up my Lacie external drives with software SuperDuper, hard drive copier. I also had a message that Time machine failed. I have two powered 12V USB
routers that are plugged into a 550VA CyberPower surge protector. I often receive these insufficient USB power for devices messages a dozen times even when I do not have devices like camera, Ipad, Ipod, and Tascam digital audio recorder plugged in. Is there a way to troubleshoot these USB routers or should I consider that one of the routers may be defective and replace them?
DavidMy 2007 Macbook pro Intel Core 2 Duo Processor Speed 2.33 GHz has power issues with one or some of my USB powered devices. Last night I could not back up my Lacie external drives with software SuperDuper, hard drive copier. I also had a message that Time machine failed. I have two powered 12V USB
routers that are plugged into a 550VA CyberPower surge protector. I often receive these insufficient USB power for devices messages a dozen times even when I do not have devices like camera, Ipad, Ipod, and Tascam digital audio recorder plugged in. Is there a way to troubleshoot these USB routers or should I consider that one of the routers may be defective and replace them?
David -
How can I get Time Machine to back up an external hard drive (iPhotos) that is attached to airport extreme base station. Note: Time machine is usb to macbook pro and external drive with iphotos is usb to airport extreme base station. Help please. Thanks!
Once you have the drive connected to your Mac, click System Preferences (gear icon) on the dock
Click Time Machine
Click Options
Be default, the hard drive will be Excluded from backups. Click the drive to highlight it, then click the "-" (minus) button at the bottom of the list to remove the drive from Excluded items.
The drive will be backed up on the next Time Machine pass
Everything above assumes that the hard drive has been formatted in Mac OS Extended (Journaled) as Time Machine will only backup drives in that format. -
External monitor with MacBook Pro
I have a new Macbook Pro and have it hooked up to an external monitor and an USB Apple keyboard in my home office. How am I able to power the laptop on without opening the display and have it display only on my external display? When I am at home I'd like to use my external monitor and not my Macbook display.
Having the computer with the lid closed is dangerous cause even when just browsing the web with flash content it starts heating up and I've heard about casess of melted displays. Besides, the wifi strength is reduced and you can't use the keyboard and the trackpad.
So, for Lion users, it's possible to just use the external display with the lid open:
1. In Mission Control Preferences activate one Hot Corner to put the display to sleep.
2. Connect the external monitor and plug in the power source to your computer.
3. Move the mouse to the Hot Corner to put the display to sleep.
4. Close the lid and wait a few seconds.
5. Open the lid and voila!
Take care! -
External display with MacBook Pro in Lion
Hello,
Yesterday I bought a Mac OS X Lion, and I found one annoying feature of the system - working on a MacBook Pro (MBP), and very often use an external display, with that do not use display in the MBP. When connecting an external monitor doing video processing,and this activity I was used by Mac OS X Snow Leopard to open the MBP there wasaccess of air to cool the computer. After installing the Lion was the fact that even at very small opening MBP is switched to internal MBP display. This is the functionality of the Lion off somewhere or somehow set? I looked in Preferences, and I have found nothing. Thank you in advance for information on how to solve this problem.I own a mac mini that stays connected to the 52" LCD 120hz in my living room. The image is perfect, and fits just fine. I did a mini-display port to dvi and got a monster cable adapter for dvi to hdmi which too it to my tv. I did have to go into the tv and set the tv to overscan I think on the image to make it fit and you will have to adjust the resolution on the computer. I can say the colors are darker on the tv and this is just due to the nature of the screen size. Newer LED tvs may be better, but mine is only 1 1/2 years old.
For an external display, just go to the educators link, select your college and you get $100 off. My wife is an educator and I am back in college so it's no hassle. Or they just ask for an ID. I own 2 24" ACD and they are nice. I do photography and a screen calibration is a must. Once done you'll be happy. And docking with the laptop is handy.
Maybe you are looking for
-
When the tech set up my new iPad last week, I can get email on IT, but now I can't get email on my Mac laptop. What's wrong? Tish
-
SAP Notes for Deleted Shopping Carts in SRM 7.02 in ECS
Hi , I am having an issue in SRM 7.02 in Extended Classic Scenario, Where Users are able to delete Shopping Carts even after Follow on Document created i.e. till Confirmation. Now they want to delete the SRM PO. As there is no Shopping Cart existing
-
Using Starts-with XSLT function with XI
Hi All, Any help is apperciated. I am using the starts-with xslt function and when i do so the message gets stucks in the queue. If i run code without the starts-with then is works?? <xsl:for-each select="receipt/prod"> <xsl:for-each select="car
-
My data is in the form of a string. It contains 0, 1, and X (don't cares). I have the data separated into individual spreadsheets and also in a 2D array. I am trying to create a table or some sort of listing for displaying the data. I want to a
-
Finder restarts when right clicking
Hi, MacBook Pro, brand new (1 month old) When I am in a folder window and right click to for example get the meny up to choose a new folder, the windows closes down and one of the other programs comes up. It feels like finder restarts as when I go ba